Ensure lists of Commands can be stringfied

Change-Id: I3667bf0aed8cf22f270454400ffeb1d8ebdaf5ad
This commit is contained in:
Terry Wilson 2020-10-23 14:28:58 -05:00
parent e2bce277e5
commit 3b7d243dd8
1 changed files with 2 additions and 0 deletions

View File

@ -67,6 +67,8 @@ class BaseCommand(api.Command):
", ".join("%s=%s" % (k, v) for k, v in command_info.items()
if k not in ['api', 'result']))
__repr__ = __str__
class ReadOnlyCommand(BaseCommand):
READ_ONLY = True