Skip to content

Commit 77d371a

Browse files
Update src/azure-cli/azure/cli/command_modules/appconfig/_kv_helpers.py
Co-authored-by: Albert Ofori <102393878+albertofori@users.noreply.github.com>
1 parent 31284c3 commit 77d371a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ def __write_kv_and_features_to_file(file_path, key_values=None, features=None, f
284284
yaml.safe_dump(exported_keyvalues, fp, sort_keys=False, width=float('inf'))
285285
elif format_ == 'properties':
286286
for key, value in exported_keyvalues.items():
287-
fp.write('{}={}\n'.format(key, value))
287+
fp.write('{}={}\n'.format(javaproperties.escape(key), value))
288288
except Exception as exception:
289289
raise FileOperationError("Failed to export key-values to file. " + str(exception))
290290

0 commit comments

Comments
 (0)