for hostname, name in args.mgr:
try:
+ distro = None
distro = hosts.get(hostname, username=args.username)
rlogger = distro.conn.logger
LOG.info(
create_mgr(distro, name, args.cluster, distro.init)
distro.conn.exit()
except RuntimeError as e:
- if distro.normalized_name == 'redhat':
+ if distro and distro.normalized_name == 'redhat':
LOG.error('this feature may not yet available for %s %s' % (distro.name, distro.release))
failed_on_rhel = True
LOG.error(e)