Remove the "is CapBaseObject" condition
A module has to always return a CapBaseObject, this condition is not usefull
This commit is contained in:
parent
132d131f87
commit
b6e44e8d22
1 changed files with 1 additions and 4 deletions
|
|
@ -1026,10 +1026,7 @@ class ReplApplication(Cmd, ConsoleApplication):
|
|||
|
||||
for obj in objects:
|
||||
if only is False or not hasattr(obj, 'id') or obj.id in only:
|
||||
if isinstance(obj, CapBaseObject):
|
||||
self.cached_format(obj)
|
||||
else:
|
||||
print obj
|
||||
self.cached_format(obj)
|
||||
|
||||
if path:
|
||||
# Let's go back to the parent directory
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue