Change-Id: Id7a4f567c7c81e17c33b5c3ba558fa1cc891b42d
Signed-off-by: Alex Yang <yangyang1@zte.com.cn>
help='Config cluster'),
cfg.StrOpt('host',
help='Config host'),
- cfg.StrOpt('env',
+ cfg.IntOpt('env',
help='deploy environment'),
]
cluster_id = cluster_info.id
add_hosts_interface(cluster_id, hosts_info, hosts_name,
host_interface_map, vip)
- if conf['env'] and conf['env'] == 0:
+ if 'env' in conf and conf['env'] == 0:
build_pxe_for_os(cluster_id)
except Exception:
print("Deploy failed!!!.%s." % traceback.format_exc())