mirror of
https://github.com/Telecominfraproject/wlan-testing.git
synced 2025-10-29 18:12:34 +00:00
write reservation ID to file (#333)
Signed-off-by: Max Brenner <xamrennerb@gmail.com>
This commit is contained in:
@@ -19,6 +19,7 @@ def main():
|
||||
parser.add_argument('--ap-model', default='[Any]')
|
||||
parser.add_argument('--wifi-type', default='[Any]')
|
||||
parser.add_argument('--blueprint', default='Basic Lab')
|
||||
parser.add_argument('--reservation-id-file', default='./reservation_id.txt')
|
||||
args = parser.parse_args()
|
||||
|
||||
session = get_session()
|
||||
@@ -44,7 +45,8 @@ def main():
|
||||
]
|
||||
).Reservation
|
||||
|
||||
print(reservation.Id)
|
||||
with open(args.reservation_id_file, 'w') as f:
|
||||
f.write(reservation.Id)
|
||||
|
||||
wait_for_provisioning_status(session, reservation.Id, 'Ready')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user