workflows.utils.print_json_as_env.format_bool_variables#

workflows.utils.print_json_as_env.format_bool_variables(key, validated_dict, **options)#

Converts validated_dict[key] from a bool to a bash-style Boolean string If validated_dict[key] is not a bool, nothing is done. This modifies validated_dict.

Parameters:
  • key (str) – A key of validated_dict.

  • validated_dict (dict) – A dict with key key where validated_dict[key] is possibly a bool.

  • options (kwargs) – Any keyword arguments not used by this function.