Skip to content

Commit

Permalink
Don't register commands that failed to load
Browse files Browse the repository at this point in the history
  • Loading branch information
eonpatapon committed Mar 24, 2016
1 parent 27fa9e5 commit da2847c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions contrail_api_cli/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,10 @@ def list(self):
:rtype: (name, Command)
"""
for ext in self.extensions:
# don't return ext that failed
# to load earlier
if ext.obj is None:
continue
yield (ext.name, ext.obj)

@classmethod
Expand Down

0 comments on commit da2847c

Please sign in to comment.