Skip to content

Commit 7ac8971

Browse files
committed
update bootstrap app.py
1 parent 8bad9bd commit 7ac8971

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/web-ui/app.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
from requests.auth import HTTPBasicAuth
77
from types import SimpleNamespace
88
import json
9+
from time import sleep
910

1011
app = APIFlask(__name__)
1112
app.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)

0 commit comments

Comments
 (0)