Skip to content

Commit

Permalink
Merge pull request #94 from gebhardtr/no-delimiter
Browse files Browse the repository at this point in the history
handle names without a delimiter
  • Loading branch information
lavie authored Oct 25, 2022
2 parents 86666d0 + 87f5b21 commit b76ab31
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 b76ab31

Please sign in to comment.