Commit ba30c1a6 authored by Alban Bruder's avatar Alban Bruder

Update reset-ws cmd

parent e6244479
......@@ -142,6 +142,10 @@ def local(force, report, username, password, hostname, address, gateway, interfa
if not address:
address = info["address"]
# for now: hardcode subnet
if not address.endswith("/24"):
address += "/24"
if not gateway:
gateway = info["gateway"]
......@@ -170,7 +174,6 @@ def local(force, report, username, password, hostname, address, gateway, interfa
logger.info("Downloading Ubuntu image. Please wait...")
subprocess.Popen(
"wget --output-document /root/ubuntu.iso {}".format(UBUNTU_ISO), shell=True).wait()
logger.info("Download complete.")
logger.info("Updating bootloader...")
uuid = get_uuid("/root")
......
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