Skip to content

Commit 506cc8c

Browse files
authored
Merge pull request #158 from jongaudu/master
changed get_device_name to get_name
2 parents 9efe093 + f013772 commit 506cc8c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

ncx_self_provision/ncx_self_provision.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
# Validate router firmware
77
def validate_readiness():
8-
device_name = cp.get_device_name()
8+
device_name = cp.get_name()
99

1010
# Get static configuration data once
1111
staging_group_id = cp.get_appdata('staging_group_id')
@@ -27,7 +27,7 @@ def get_router_data():
2727

2828
def get_device_firmware_id(product_id):
2929
"""Helper function to get device firmware ID"""
30-
device_firmware = cp.get_device_firmware().split('-')[0]
30+
device_firmware = cp.get_firmware_version().split('-')[0]
3131

3232
return n2.get_firmware_for_product_id_by_version(product_id=product_id, firmware_name=device_firmware)['id']
3333

0 commit comments

Comments
 (0)