projects
/
snf-image-creator
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Sleep for 10 secs after you monitor Windows is up
[snf-image-creator]
/
image_creator
/
os_type
/
windows.py
diff --git
a/image_creator/os_type/windows.py
b/image_creator/os_type/windows.py
index
f8e30f6
..
a7f8e07
100644
(file)
--- a/
image_creator/os_type/windows.py
+++ b/
image_creator/os_type/windows.py
@@
-249,10
+249,9
@@
class Windows(OSBase):
if not self._wait_on_file(monitor, token):
raise FatalError("Windows booting timed out.")
else:
if not self._wait_on_file(monitor, token):
raise FatalError("Windows booting timed out.")
else:
+ time.sleep(10) # Just to be sure everything is up
self.out.success('done')
self.out.success('done')
- time.sleep(5) # Just to be sure everything is up
-
self.out.output("Disabling automatic logon ...", False)
self._disable_autologon()
self.out.success('done')
self.out.output("Disabling automatic logon ...", False)
self._disable_autologon()
self.out.success('done')
@@
-627,6
+626,8
@@
class Windows(OSBase):
if rc != 0 and fatal:
reason = stderr if len(stderr) else stdout
if rc != 0 and fatal:
reason = stderr if len(stderr) else stdout
+ self.out.output("Command: `%s' failed. Reason: %s" %
+ (command, reason))
raise FatalError("Command: `%s' failed. Reason: %s" %
(command, reason))
raise FatalError("Command: `%s' failed. Reason: %s" %
(command, reason))