Skip to content

Commit

Permalink
Fix syntax error
Browse files Browse the repository at this point in the history
  • Loading branch information
alfred2g committed Dec 22, 2023
1 parent 4fff20b commit 65dce01
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions servicetests/tests/FleetProvisioning/fleet_provisioning.py
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ def on_lifecycle_stopped(lifecycle_stopped_data: mqtt5.LifecycleStoppedData):
if cmdData.input_csr_path is None:
print("Publishing to CreateKeysAndCertificate...")
publish_future = identity_client.publish_create_keys_and_certificate(
request=iotidentity.CreateKeysAndCertificateRequest(), qos=mqtt_qos,
request=iotidentity.CreateKeysAndCertificateRequest(), qos=mqtt_qos)
publish_future.add_done_callback(on_publish_create_keys_and_certificate)

waitForCreateKeysAndCertificateResponse()
Expand All @@ -410,7 +410,7 @@ def on_lifecycle_stopped(lifecycle_stopped_data: mqtt5.LifecycleStoppedData):
csrPath = open(cmdData.input_csr_path, 'r').read()
publish_future = identity_client.publish_create_certificate_from_csr(
request=iotidentity.CreateCertificateFromCsrRequest(certificate_signing_request=csrPath),
qos=mqtt_qos,
qos=mqtt_qos)
publish_future.add_done_callback(on_publish_create_certificate_from_csr)

waitForCreateCertificateFromCsrResponse()
Expand All @@ -425,7 +425,7 @@ def on_lifecycle_stopped(lifecycle_stopped_data: mqtt5.LifecycleStoppedData):

print("Publishing to RegisterThing topic...")
registerthing_publish_future = identity_client.publish_register_thing(
registerThingRequest, mqtt_qos,
registerThingRequest, mqtt_qos)
registerthing_publish_future.add_done_callback(on_publish_register_thing)

waitForRegisterThingResponse()
Expand Down

0 comments on commit 65dce01

Please sign in to comment.