Better handling of command ambiguity.
This commit is contained in:
parent
462b73b626
commit
27500b9762
1 changed files with 1 additions and 1 deletions
|
|
@ -363,6 +363,6 @@ class Command(object):
|
||||||
Returns:
|
Returns:
|
||||||
A string with identifying information to disambiguate the object, conventionally with a preceding space.
|
A string with identifying information to disambiguate the object, conventionally with a preceding space.
|
||||||
"""
|
"""
|
||||||
if hasattr(self, 'obj'):
|
if hasattr(self, 'obj') and self.obj != caller:
|
||||||
return " (%s)" % self.obj.get_display_name(caller)
|
return " (%s)" % self.obj.get_display_name(caller)
|
||||||
return ""
|
return ""
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue