Skip to contentSkip to conversation

wic/plugins/rootfs: Fix NameError for 'orig_path'

PATCH New Mihai Lindner 1 participant 1 message Jul 19, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 wic/plugins/rootfs: Fix NameError for 'orig_path'

Fix "NameError: name 'orig_path' is not defined".
It's a typo from when this error was handled outside this function.

---
 scripts/lib/wic/plugins/source/rootfs.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
scripts/lib/wic/plugins/source/rootfs.py +1 -1
index 25bb41dd70..fc06312ee4 100644
@@ -35,7 +35,7 @@ class RootfsPlugin(SourcePlugin):
     @staticmethod
     def __validate_path(cmd, rootfs_dir, path):
         if os.path.isabs(path):
-            logger.error("%s: Must be relative: %s" % (cmd, orig_path))
+            logger.error("%s: Must be relative: %s" % (cmd, path))
             sys.exit(1)
 
         # Disallow climbing outside of parent directory using '..',
Signature · 1 line
2.35.1