Throw if "parameters" dict key is not available since it's mandatory.
@@ -294,7 +294,7 @@ if __name__ == '__main__':
try:
stdin_parameters = json.loads(stdin_data)
- stdin_parameters = stdin_parameters.get('parameters', {})
+ stdin_parameters = stdin_parameters['parameters']
except Exception as e:
msg = ('Failed to parse parameters from stdin. Expected a JSON object with '
'"parameters" attribute: %s' % (str(e)))
