diff --git a/connpy/_version.py b/connpy/_version.py index 2879b35..ad72179 100644 --- a/connpy/_version.py +++ b/connpy/_version.py @@ -1,2 +1,2 @@ -__version__ = "4.0.2" +__version__ = "4.0.3" diff --git a/connpy/connapp.py b/connpy/connapp.py index 66d644f..c15917a 100755 --- a/connpy/connapp.py +++ b/connpy/connapp.py @@ -484,7 +484,11 @@ class connapp: return actions.get(args.command)(args) def _ls(self, args): - items = getattr(self, args.data) + if args.data == "nodes": + attribute = "nodes_list" + else: + attribute = args.data + items = getattr(self, attribute) if args.filter: items = [ item for item in items if re.search(args.filter[0], item)] if args.format and args.data == "nodes":