Skip to content

Allow -R to be passed *after* other global flags (-t and -D)#196

Open
janvrany wants to merge 1 commit intobolthole:masterfrom
janvrany:pr/fix-recursive-refresh-2
Open

Allow -R to be passed *after* other global flags (-t and -D)#196
janvrany wants to merge 1 commit intobolthole:masterfrom
janvrany:pr/fix-recursive-refresh-2

Conversation

@janvrany
Copy link

Using custom tags and a recursive refresh fails when creating snapshot with error:

ERROR: unrecognized zrep subcommand -R

This is because it executes something like

ssh  source_host zrep -t zrep_tag -R snaponly fs

The -R flag comes after -t flag. However, zrep (prior this commit) required -R to be the fist flag.

This commit moves the check for -R flag and initialization of ZREP_R to the same loop that checks for other global flags (currently -t and -D). This fixes the issue.

Using custom tags and a recursive `refresh` fails when creating snapshot
with error:

   ERROR: unrecognized zrep subcommand -R

This is because it executes something like

   ssh  source_host zrep -t zrep_tag -R snaponly fs

The `-R` flag comes after `-t` flag. However, `zrep` (prior this commit)
required `-R` to be the fist flag.

This commit moves the check for `-R` flag and initialization of `ZREP_R`
to the same loop that checks for other global flags (currently `-t` and
`-D`). This fixes the issue.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant