Skip to content

Commit fd6ad18

Browse files
Minor Change on adding the condition for lc status check (#643)
* Minor Change Signed-off-by: Lovepreet Singh <Lovepreet.Singh1@dell.com> * Fixed JIT-294453 Signed-off-by: Lovepreet Singh <Lovepreet.Singh1@dell.com> --------- Signed-off-by: Lovepreet Singh <Lovepreet.Singh1@dell.com>
1 parent 7522cea commit fd6ad18

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

plugins/modules/idrac_reset.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,7 @@
225225
FAILED_STATUS = "Failed"
226226
STATUS_SUCCESS = [200, 202, 204]
227227
ERR_STATUS_CODE = [400, 404]
228+
PASSWORD_CHANGE_OPTIONS = ['All', 'ResetAllWithRootDefaults']
228229
RESET_KEY = "Oem.#DellManager.ResetToDefaults"
229230
GRACEFUL_RESTART_KEY = "#Manager.Reset"
230231

@@ -357,7 +358,7 @@ def is_check_idrac_latest(self):
357358
return True
358359

359360
def check_lcstatus(self, post_op=True):
360-
if self.reset_to_default == 'All' and post_op and self.staus_code_after_wait == 401:
361+
if self.reset_to_default in PASSWORD_CHANGE_OPTIONS and post_op and self.staus_code_after_wait == 401:
361362
return
362363
lc_status_dict = {}
363364
lc_status_dict['LCStatus'] = ""

0 commit comments

Comments
 (0)