Skip to content

Commit 1fdad57

Browse files
committed
Properly append the image info command
1 parent db9fa8d commit 1fdad57

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ansible_runner/runner.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,7 @@ def image_info(self):
487487
elif not os.path.exists(image_info_path):
488488
logger.warn("Container Image runtime information is not available")
489489
return None
490-
with open(image_info_path) as f:
490+
with open(image_info_path, "w") as f:
491491
return f.read()
492492

493493
@property
@@ -546,7 +546,7 @@ def populate_container_info(self, filter_parameters="{{Image}}"):
546546
if filter_parameters:
547547
cmd.append("-f")
548548
cmd.append(filter_parameters)
549-
filter_parameters.append(container_name)
549+
cmd.append(container_name)
550550
image_info = os.path.join(self.config.private_data_dir, "image_info")
551551
with open(image_info) as f:
552552
proc = Popen(cmd, stdout=f, stderr=PIPE)

0 commit comments

Comments
 (0)