Skip to content
This repository has been archived by the owner on Mar 3, 2023. It is now read-only.

Fix bug in dry-run argument for update command #2831

Merged
merged 1 commit into from Apr 1, 2018

Conversation

ajorgensen
Copy link
Contributor

@ajorgensen ajorgensen commented Mar 31, 2018

Since list_extra_args is an array, the += operator deconstructs a
string and add each character as an individual array element. This made
it so when the update command it would not detect if it was in dry-run
mode and always run the update command. By encapsulating the --dry-run
string in an list it is properly added as an argument and runs with the
expected behavior.

Since list_extra_args is an array the `+=` operator deconstructs a
string and add each character as an individual array element. This made
it so when the update command it would not detect if it was in dry-run
mode and always run the update command. By encapsulating the `--dry-run`
string in an list it is properly added as an argument and runs with the
expected behavior.

This also fixes an issue with the way the `dry_run_format` argument was
being updated in the extra args dictionary
@kramasamy
Copy link
Contributor

+1

@kramasamy kramasamy merged commit 47ae988 into apache:master Apr 1, 2018
nicknezis pushed a commit that referenced this pull request Sep 14, 2020
Since list_extra_args is an array the `+=` operator deconstructs a
string and add each character as an individual array element. This made
it so when the update command it would not detect if it was in dry-run
mode and always run the update command. By encapsulating the `--dry-run`
string in an list it is properly added as an argument and runs with the
expected behavior.

This also fixes an issue with the way the `dry_run_format` argument was
being updated in the extra args dictionary
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants