Skip to content

Commit

Permalink
Fix --images paraeter of osism manage images command (#1081)
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Berendt <berendt@osism.tech>
  • Loading branch information
berendt authored Oct 4, 2024
1 parent 9137beb commit d5f9077
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion osism/commands/manage.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,12 +228,15 @@ def take_action(self, parsed_args):
arguments.append("--latest")
if hide:
arguments.append("--hide")

if images:
arguments.append(f"--images '{images}'")
else:
arguments.append("--images /etc/images")

joined_arguments = " ".join(arguments)
subprocess.call(
f"/usr/local/bin/openstack-image-manager --images=/etc/images {joined_arguments}",
f"/usr/local/bin/openstack-image-manager {joined_arguments}",
shell=True,
)

Expand Down

0 comments on commit d5f9077

Please sign in to comment.