Compare commits
2 commits
94fd1d685a
...
11f4b647c2
Author | SHA1 | Date | |
---|---|---|---|
11f4b647c2 | |||
7b95ce0541 |
|
@ -24,9 +24,10 @@ deploy() {
|
||||||
INIT_ORG="${INIT_ORG:-example-org}"
|
INIT_ORG="${INIT_ORG:-example-org}"
|
||||||
INIT_USER="${INIT_USER:-user@example.org}"
|
INIT_USER="${INIT_USER:-user@example.org}"
|
||||||
INIT_PASSWD="${INIT_PASSWD:-1234}"
|
INIT_PASSWD="${INIT_PASSWD:-1234}"
|
||||||
|
ADMIN='True'
|
||||||
./manage.py add_institution "${INIT_ORG}"
|
./manage.py add_institution "${INIT_ORG}"
|
||||||
# TODO: one error on add_user, and you don't add user anymore
|
# TODO: one error on add_user, and you don't add user anymore
|
||||||
./manage.py add_user "${INIT_ORG}" "${INIT_USER}" "${INIT_PASSWD}"
|
./manage.py add_user "${INIT_ORG}" "${INIT_USER}" "${INIT_PASSWD}" "${ADMIN}"
|
||||||
|
|
||||||
if [ "${DEMO:-}" ]; then
|
if [ "${DEMO:-}" ]; then
|
||||||
./manage.py up_snapshots example/snapshots/ "${INIT_USER}"
|
./manage.py up_snapshots example/snapshots/ "${INIT_USER}"
|
||||||
|
|
|
@ -113,7 +113,8 @@ class Build:
|
||||||
# mac = get_mac2(hwinfo_raw) or ""
|
# mac = get_mac2(hwinfo_raw) or ""
|
||||||
mac = get_mac(lshw) or ""
|
mac = get_mac(lshw) or ""
|
||||||
if not mac:
|
if not mac:
|
||||||
print("WARNING!! No there are MAC address")
|
print(f"WARNING: Could not retrieve MAC address in snapshot {snapshot['uuid']}" )
|
||||||
|
# TODO generate system annotation for that snapshot
|
||||||
else:
|
else:
|
||||||
print(f"{manufacturer}{model}{chassis}{serial_number}{sku}{mac}")
|
print(f"{manufacturer}{model}{chassis}{serial_number}{sku}{mac}")
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue