diff options
author | Hsin-Yi Chen <hsinyichen@google.com> | 2023-03-29 17:33:31 +0800 |
---|---|---|
committer | Hsin-Yi Chen <hsinyichen@google.com> | 2023-03-29 09:56:15 +0000 |
commit | dcba2161ac56dbdd6b3721788522ee6280bd42de (patch) | |
tree | 3090fe8e5ca21f0e1efa25b893986164e8c6920b | |
parent | d2fb9a2a2c0630955828b8c129bc34b58a726a0f (diff) | |
download | acloud-dcba2161ac56dbdd6b3721788522ee6280bd42de.tar.gz |
Release failing instances regardless of --local-instance-dir
https://android-review.googlesource.com/2367508 has been deployed.
The infrastructure can manage the instance IDs. It is not necessary to
set the failing instances to be in use until deletion.
Bug: 261109137
Test: atest acloud_test
Change-Id: I88d77405ca047e3eb6fd181b99983adb22b07ab8
-rw-r--r-- | create/local_image_local_instance.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/create/local_image_local_instance.py b/create/local_image_local_instance.py index 8bd793fd..a426ce99 100644 --- a/create/local_image_local_instance.py +++ b/create/local_image_local_instance.py @@ -179,11 +179,7 @@ class LocalImageLocalInstance(base_avd_create.BaseAVDCreate): # Set the state to in-use if the instances start successfully. # Failing instances are not set to in-use so that the user can # restart them with the same IDs. - # TODO(b/261109137): Remove the condition of local_instance_dir - # when the testing infrastructure supports - # allocating instance IDs. - if (result_report.status == report.Status.SUCCESS or - avd_spec.local_instance_dir): + if result_report.status == report.Status.SUCCESS: for ins_lock in ins_locks: ins_lock.SetInUse(True) return result_report |