Fix pathing issue with custom credentials

also fix some minor flake8 issues
This commit is contained in:
Alan Rominger
2020-09-03 11:02:08 -04:00
committed by Shane McDonald
parent 6e2010ca40
commit 73418e41f3
2 changed files with 16 additions and 11 deletions

View File

@@ -564,7 +564,12 @@ class CredentialType(CommonModelNameNotUnique):
if extra_vars:
path = build_extra_vars_file(extra_vars, private_data_dir)
args.extend(['-e', '@%s' % path])
# FIXME: develop some better means of referencing paths inside containers
container_path = os.path.join(
'/runner',
os.path.basename(path)
)
args.extend(['-e', '@%s' % container_path])
class ManagedCredentialType(SimpleNamespace):