Skip to content
Permalink
Browse files
switched yaml.load() to yaml.safe_load() to not load serialized pytho…
…n objects.
  • Loading branch information
SteveMcGrath committed Mar 4, 2021
1 parent fa838db commit f8c2095fd529e664e7fa25403a0a4a85bb3907d0
Showing with 1 addition and 1 deletion.
  1. +1 −1 tenable_jira/cli.py
@@ -62,7 +62,7 @@ def cli(configfile, observed_since, setup_only=False, troubleshoot=False):
'''
# Load the config, but ensure that any additional fields are additive to the
# basic field set.
config_from_file = yaml.load(configfile, Loader=yaml.Loader)
config_from_file = yaml.safe_load(configfile)
fields = config_from_file.pop('custom_fields', list())
config = dict_merge(base_config(), config_from_file)
config['fields'] = config['fields'] + fields

2 comments on commit f8c2095

@rabby28698869

This comment has been minimized.

Copy link

@rabby28698869 rabby28698869 replied Mar 11, 2021

@SteveMcGrath

This comment has been minimized.

Copy link
Collaborator Author

@SteveMcGrath SteveMcGrath replied Mar 11, 2021

?

Please sign in to comment.