* Update Apps with new Common version * Patch with the secret fixes from common * fix amd
22 lines
396 B
Python
22 lines
396 B
Python
#!/usr/bin/python3
|
|
import json
|
|
import os
|
|
import sys
|
|
|
|
|
|
def migrate(values):
|
|
values.update({
|
|
'secretEnv': values.get('secret'),
|
|
'secret': {}
|
|
})
|
|
return values
|
|
|
|
|
|
if __name__ == '__main__':
|
|
if len(sys.argv) != 2:
|
|
exit(1)
|
|
|
|
if os.path.exists(sys.argv[1]):
|
|
with open(sys.argv[1], 'r') as f:
|
|
print(json.dumps(migrate(json.loads(f.read()))))
|