TobKed commented on a change in pull request #8553: URL: https://github.com/apache/airflow/pull/8553#discussion_r510106178
########## File path: airflow/providers/google/cloud/hooks/dataflow.py ########## @@ -496,17 +517,15 @@ def start_java_dataflow( variables['jobName'] = name variables['region'] = location - def label_formatter(labels_dict): - return ['--labels={}'.format( - json.dumps(labels_dict).replace(' ', ''))] + if 'labels' in variables: + variables['labels'] = json.dumps(variables['labels']).replace(' ', '') Review comment: > This is modifying user provided input. Is this your intention? @aaltay the reason of this replace was to avoid spaces in json, change of the user input was side effect. I changed it to `variables['labels'] = json.dumps(variables['labels'], separators=(',', ':'))` so the json is compact as well and labels provided by the user are not touched. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org