Skip to content

Commit 359e19e

Browse files
author
Christine WANJAU
committed
Merge branch 'cwanjau/supportFFV2Schema' of https://github.com/ChristineWanjau/azure-cli into cwanjau/supportFFV2Schema
2 parents 1e1c580 + 1d0565b commit 359e19e

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/azure-cli/azure/cli/command_modules/appconfig/_kv_export_helpers.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ def __export_features(retrieved_features, naming_convention, compatibility_mode)
117117
new_ms_featuremanagement_keyword = FeatureManagementReservedKeywords.UNDERSCORE.feature_management
118118
feature_flags_keyword = FeatureFlagConstants.FEATURE_FLAGS_KEY
119119
try:
120+
compatibility_mode = str(compatibility_mode).lower() in ['true']
120121
if compatibility_mode:
121122
feature_reserved_keywords = FeatureManagementReservedKeywords.get_keywords(naming_convention)
122123
exported_dict = {}

src/azure-cli/azure/cli/command_modules/appconfig/tests/latest/test_appconfig_commands.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1498,7 +1498,7 @@ def test_azconfig_import_export_naming_conventions(self, resource_group, locatio
14981498
self.cmd(
14991499
'appconfig kv import -n {config_store_name} -s {import_source} --path "{imported_file_both_schemas_fm_path}" --format {imported_format} --label {label} -y')
15001500
self.cmd(
1501-
'appconfig kv export -n {config_store_name} -d {import_source} --path "{exported_file_both_schemas_fm_path}" --format {imported_format} --naming-convention {naming_convention} --label {label} -y')
1501+
'appconfig kv export -n {config_store_name} -d {import_source} --path "{exported_file_both_schemas_fm_path}" --format {imported_format} --label {label} -y')
15021502
with open(exported_both_schemas_camel_case_file_path) as json_file:
15031503
exported_camel_case_kvs = json.load(json_file)
15041504
with open(expected_exported_both_schemas_file_path) as json_file:
@@ -1520,7 +1520,7 @@ def test_azconfig_import_export_naming_conventions(self, resource_group, locatio
15201520
self.cmd(
15211521
'appconfig kv import -n {config_store_name} -s {import_source} --path "{imported_file_both_schemas_fm_path}" --format {imported_format} --label {label} -y')
15221522
self.cmd(
1523-
'appconfig kv export -n {config_store_name} -d {import_source} --path "{exported_file_both_schemas_fm_path}" --format {imported_format} --naming-convention {naming_convention} --label {label} -y')
1523+
'appconfig kv export -n {config_store_name} -d {import_source} --path "{exported_file_both_schemas_fm_path}" --format {imported_format} --label {label} -y')
15241524
with open(exported_both_schemas_pascal_case_file_path) as json_file:
15251525
exported_pascal_case_kvs = json.load(json_file)
15261526
with open(expected_exported_both_schemas_file_path) as json_file:
@@ -1542,7 +1542,7 @@ def test_azconfig_import_export_naming_conventions(self, resource_group, locatio
15421542
self.cmd(
15431543
'appconfig kv import -n {config_store_name} -s {import_source} --path "{imported_file_both_schemas_fm_path}" --format {imported_format} --label {label} -y')
15441544
self.cmd(
1545-
'appconfig kv export -n {config_store_name} -d {import_source} --path "{exported_file_both_schemas_fm_path}" --format {imported_format} --naming-convention {naming_convention} --label {label} -y')
1545+
'appconfig kv export -n {config_store_name} -d {import_source} --path "{exported_file_both_schemas_fm_path}" --format {imported_format} --label {label} -y')
15461546
with open(exported_both_schemas_hyphen_case_file_path) as json_file:
15471547
exported_hyphen_case_kvs = json.load(json_file)
15481548
with open(expected_exported_both_schemas_file_path) as json_file:

0 commit comments

Comments
 (0)