Skip to content

Commit

Permalink
handle names without a delimiter
Browse files Browse the repository at this point in the history
  • Loading branch information
gebhardtr committed May 4, 2022
1 parent 275e66f commit 12c862f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion runlike/inspector.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ def format_cli(self):
image = self.get_fact("Config.Image")
self.options = []

name = self.get_fact("Name").split("/")[1]
name = self.get_fact("Name").split("/")[-1]
if not self.no_name:
self.options.append("--name=%s" % name)
self.parse_hostname()
Expand Down

0 comments on commit 12c862f

Please sign in to comment.