diff --git a/microsoft/testsuites/vm_extensions/vmsnapshot_extension.py b/microsoft/testsuites/vm_extensions/vmsnapshot_extension.py index b7e5c6785e..7de6d664ee 100644 --- a/microsoft/testsuites/vm_extensions/vmsnapshot_extension.py +++ b/microsoft/testsuites/vm_extensions/vmsnapshot_extension.py @@ -235,7 +235,7 @@ def _verify_vmsnapshot_extension( rpc_status = response.provisioning_state assert_that(rpc_status, "RPC creation failed").is_equal_to("Succeeded") count = 0 - for count in range(10): + for _ in range(10): try: # create a restore point for the VM restore_point = "rp_" + datetime.now().strftime("%Y-%m-%d-%H-%M-%S") @@ -265,7 +265,7 @@ def _verify_vmsnapshot_extension( else: raise e time.sleep(1) - count = count + 1 + count += 1 assert_that(count, "Restore point creation failed.").is_less_than(10) def _find_extension_dir(self, node: Node) -> str: