Don't raise if impossible to find slapos configuration.

parent eeed7ff9
......@@ -511,10 +511,13 @@ def prepare_from_scratch(config):
,'--ipv6-interface', config.ipv6_interface
,'--partition-number', config.partition_amount])
if getSlaposConfiguration():
if config.need_bridge:
setup_bridge(slapos_configuration, True)
else:
setup_bridge(slapos_configuration, False)
else:
print 'Warning: impossible to set up bridge because slapos configuration doesn\'t exist.'
computer_id = get_computer_name(
os.path.join('/', slapos_configuration, 'slapos.cfg'))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment