From 12c862f7dce442a212b12144855ad7fc041befd6 Mon Sep 17 00:00:00 2001 From: Richard Gebhardt Date: Wed, 4 May 2022 10:16:50 -0400 Subject: [PATCH] handle names without a delimiter --- runlike/inspector.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runlike/inspector.py b/runlike/inspector.py index c45577a..0dce275 100644 --- a/runlike/inspector.py +++ b/runlike/inspector.py @@ -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()