Otherwise,
Traceback (most recent call last):
File "../src/ceph-daemon", line 1698, in <module>
r = args.func()
File "../src/ceph-daemon", line 767, in command_bootstrap
with StringIO() as f:
AttributeError: StringIO instance has no attribute '__exit__'
Signed-off-by: Sage Weil <sage@redhat.com>
cp.add_section('global')
cp.set('global', 'fsid', fsid);
cp.set('global', 'mon host', addr_arg)
- with StringIO() as f:
- cp.write(f)
- config = f.getvalue()
+ cpf = StringIO()
+ cp.write(cpf)
+ config = cpf.getvalue()
if not args.skip_ping_check:
logger.info('Verifying we can ping mon IP %s...' % mon_ip)