File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change 66from requests .auth import HTTPBasicAuth
77from types import SimpleNamespace
88import json
9+ from time import sleep
910
1011app = APIFlask (__name__ )
1112app .config .update (TESTING = True , SECRET_KEY = os .getenv ("SECRET_KEY" ))
@@ -119,16 +120,14 @@ def execute_redfish_command(action):
119120 if action == "Bootstrap" :
120121 VerifyiDRACAccess ()
121122 ForceOff ()
122- sleepSecconds = 10
123+ sleepSecconds = 15
123124 print (f"Sleeping for { sleepSecconds } " )
125+ sleep (sleepSecconds )
124126 iDRACSetVirtualTerminalHTML5 ()
125127 UnmountISO ()
126- UnmountISO ()
127- MountISO ()
128128 MountISO ()
129+ SetBootFromVirtualMedia ()
129130 GetPowerState ()
130- from time import sleep
131-
132131 sleepSecconds = 10
133132 print (f"Sleeping for { sleepSecconds } " )
134133 sleep (sleepSecconds )
You can’t perform that action at this time.
0 commit comments