Skip to content

Commit

Permalink
Remove redundant level "iot_provision"
Browse files Browse the repository at this point in the history
Signed-off-by: ChunAn Wu <an.wu@canonical.com>
  • Loading branch information
kiya956 committed Nov 7, 2024
1 parent b24052a commit 1bda55d
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 1bda55d

Please # to comment.