Skip to content

Commit

Permalink
Use yaml.safe_dump instead of yaml.dump.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kami committed Nov 28, 2016
1 parent be8c2be commit 261faf1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions st2debug/st2debug/cmd/submit_debug_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -395,8 +395,8 @@ def add_system_information(self, output_path):
"""
LOG.debug('Including system info')

system_information = yaml.dump(self.get_system_information(),
default_flow_style=False)
system_information = yaml.safe_dump(self.get_system_information(),
default_flow_style=False)

with open(output_path, 'w') as fp:
fp.write(system_information)
Expand All @@ -409,7 +409,7 @@ def add_user_info(self, output_path):
:type output_path: ``str``
"""
LOG.debug('Including user info')
user_info = yaml.dump(self.user_info, default_flow_style=False)
user_info = yaml.safe_dump(self.user_info, default_flow_style=False)

with open(output_path, 'w') as fp:
fp.write(user_info)
Expand Down

0 comments on commit 261faf1

Please sign in to comment.