Fixes: https://tracker.ceph.com/issues/49757
Signed-off-by: Adam King <adking@redhat.com>
"""
if self.t == CephBool:
chunk = "--{0}".format(self.name.replace("_", "-"))
- elif self.t == CephPrefix or self.t == CephChoices:
+ elif self.t == CephPrefix:
chunk = str(self.instance)
+ elif self.t == CephChoices:
+ chunk = f'--{self.name} {{{str(self.instance)}}}'
elif self.t == CephOsdName:
# it just so happens all CephOsdName commands are named 'id' anyway,
# so <id|osd.id> is perfect.