@@ -289,7 +289,7 @@ def add_proxy_host_line(self, vm_data):
289
289
# we must create it in the localhost to use it later with ansible
290
290
priv_key_filename = "/var/tmp/%s_%s_%s.pem" % (proxy ['user' ],
291
291
vm_data ['user' ],
292
- vm_data ['ip' ])
292
+ vm_data ['ip' ]) # nosec
293
293
with open (priv_key_filename , 'w' ) as f :
294
294
f .write (proxy ['private_key' ])
295
295
os .chmod (priv_key_filename , 0o600 )
@@ -502,7 +502,7 @@ def install_ansible_roles(self, general_conf_data, playbook):
502
502
503
503
if galaxy_collections :
504
504
now = str (int (time .time () * 100 ))
505
- filename = "/tmp/galaxy_collections_%s.yml" % now
505
+ filename = "/tmp/galaxy_collections_%s.yml" % now # nosec
506
506
yaml_deps = yaml .safe_dump ({"collections" : galaxy_collections }, default_flow_style = True )
507
507
self .logger .debug ("Galaxy collections file: %s" % yaml_deps )
508
508
task = {"copy" : 'dest=%s content="%s"' % (filename , yaml_deps )}
@@ -556,7 +556,7 @@ def install_ansible_roles(self, general_conf_data, playbook):
556
556
557
557
if galaxy_dependencies :
558
558
now = str (int (time .time () * 100 ))
559
- filename = "/tmp/galaxy_roles_%s.yml" % now
559
+ filename = "/tmp/galaxy_roles_%s.yml" % now # nosec
560
560
yaml_deps = yaml .safe_dump (galaxy_dependencies , default_flow_style = True )
561
561
self .logger .debug ("Galaxy depencies file: %s" % yaml_deps )
562
562
task = {"copy" : 'dest=%s content="%s"' % (filename , yaml_deps )}
@@ -598,7 +598,7 @@ def LaunchAnsiblePlaybook(self, output, remote_dir, playbook_file, vm, threads,
598
598
gen_pk_file = pk_file
599
599
else :
600
600
if vm ['private_key' ] and not vm ['passwd' ]:
601
- gen_pk_file = "/tmp/pk_" + vm ['ip' ] + ".pem"
601
+ gen_pk_file = "/tmp/pk_" + vm ['ip' ] + ".pem" # nosec
602
602
pk_out = open (gen_pk_file , 'w' )
603
603
pk_out .write (vm ['private_key' ])
604
604
pk_out .close ()
0 commit comments