TobKed commented on a change in pull request #8553: URL: https://github.com/apache/airflow/pull/8553#discussion_r508460182
########## 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: On the other hand, I don't think it is good idea to add unnecessary complexity to the it and limit user. Google logs already provide extensive information about problems with labels when they occur ---------------------------------------------------------------- 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