mirror of
https://github.com/ceph/ceph
synced 2025-02-19 17:08:05 +00:00
Merge pull request #32879 from shyukri/wip-42769-orch-log-handling-ench
mgr/orch: logging - handle lists output Reviewed-by: Kefu Chai <kchai@redhat.com> Reviewed-by: Sage Weil <sage@redhat.com> Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
This commit is contained in:
commit
19122bba3d
@ -579,6 +579,8 @@ class Completion(_Promise):
|
||||
"""Force a string."""
|
||||
if self.result is None:
|
||||
return ''
|
||||
if isinstance(self.result, list):
|
||||
return '\n'.join(str(x) for x in self.result)
|
||||
return str(self.result)
|
||||
|
||||
@property
|
||||
|
Loading…
Reference in New Issue
Block a user