Compare commits
No commits in common. "4cb3e34b6bc0916420608f148faff9a48b7df4a2" and "a857db5de1de2148c6dc4aa29c26a1aca591ded7" have entirely different histories.
4cb3e34b6b
...
a857db5de1
|
@ -93,7 +93,6 @@ pxe-service=x86PC,"Network Boot",pxelinux
|
|||
enable-tftp
|
||||
tftp-root=${tftp_path}
|
||||
END
|
||||
sudo systemctl restart dnsmasq
|
||||
}
|
||||
|
||||
install_netboot() {
|
||||
|
|
|
@ -319,15 +319,13 @@ def send_snapshot_to_devicehub(snapshot, token, url, legacy):
|
|||
if legacy:
|
||||
try:
|
||||
response = json.loads(response_text)
|
||||
public_url = response.get('public_url')
|
||||
dhid = response.get('dhid')
|
||||
if public_url:
|
||||
if response.get('url'):
|
||||
# apt install qrencode
|
||||
qr = "echo {} | qrencode -t ANSI".format(public_url)
|
||||
qr = "echo {} | qrencode -t ANSI".format(response['url'])
|
||||
print(exec_cmd(qr))
|
||||
print("url: {}".format(public_url))
|
||||
if dhid:
|
||||
print("dhid: {}".format(dhid))
|
||||
print("url: {}".format(response['url']))
|
||||
if response.get("dhid"):
|
||||
print("dhid: {}".format(response['dhid']))
|
||||
except Exception:
|
||||
logger.error(response_text)
|
||||
else:
|
||||
|
|
Loading…
Reference in a new issue