-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[AppConfig] appconfig kv import
: Fix import mode all
bug
#30489
Conversation
️✔️AzureCLI-FullTest
|
️✔️AzureCLI-BreakingChangeTest
|
Thank you for your contribution! We will review the pull request and get back to you soon. |
|
@@ -52,7 +52,7 @@ def compare(self, dest_kvs, strict=False): | |||
kv_diff[JsonDiff.ADD].append(kv) | |||
|
|||
else: | |||
if not self._kv_equals(kv, dest_kv_lookup[lookup_key], self._compare_fields): | |||
if not (ignore_matching_kvs and self._kv_equals(kv, dest_kv_lookup[lookup_key], self._compare_fields)): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if import mode is all, we dont need to check for updates?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since we will be overwriting the existing kvs anyways, if a kv already exists, my thought was to consider that an update even if it is unchanged
@zhoxing-ms, @yanzhudd, Could you please help merge this PR, thanks! |
/azp run |
Azure Pipelines successfully started running 3 pipeline(s). |
Related command
az appconfig kv import
Description
Related to Issue Azure/AppConfiguration#998 where import mode
all
will not write kvs when all keys already existing and the--yes
flag is not specified.Testing Guide
History Notes
[AppConfig]
az appconfig kv import
: Fix import modeall
bugThis checklist is used to make sure that common guidelines for a pull request are followed.
The PR title and description has followed the guideline in Submitting Pull Requests.
I adhere to the Command Guidelines.
I adhere to the Error Handling Guidelines.