Skip to content

Commit

Permalink
Remove redundant level "iot_provision" (#394)
Browse files Browse the repository at this point in the history
Signed-off-by: ChunAn Wu <[email protected]>
  • Loading branch information
kiya956 authored Nov 7, 2024
1 parent b24052a commit a508842
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,13 @@ def _validate_configuration(
for the Zapper `provision` API.
"""
try:
tplan = self.job_data["provision_data"]["iot_provision"]["tplan"]
tplan = self.job_data["provision_data"]["tplan"]
validate_tplan(tplan)
except KeyError as e:
raise ProvisioningError from e

try:
url = self.job_data["provision_data"]["iot_provision"]["url"]
url = self.job_data["provision_data"]["url"]
validate_url(url)
except KeyError:
url = []
Expand Down

0 comments on commit a508842

Please sign in to comment.