Skip to content

Commit

Permalink
Fixing broken UpdateWindowsKeys in python example (GoogleCloudPlatfor…
Browse files Browse the repository at this point in the history
  • Loading branch information
discentem authored and adjackura committed May 9, 2018
1 parent 441afc4 commit 358c4ae
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions examples/windows_auth_python_sample.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,10 @@ def UpdateWindowsKeys(old_metadata, metadata_entry):
# want to append new lines to the metadata value and remove any expired
# entries.
new_metadata = copy.deepcopy(old_metadata)
for item in new_metadata['items']:
if item['key'] == 'windows-keys':
item['value'] = metadata_entry
new_metadata['items'] = [{
'key': "windows-keys",
'value': metadata_entry
}]
return new_metadata


Expand Down

0 comments on commit 358c4ae

Please sign in to comment.