Revision b1d55773
b/image_creator/os_type/windows.py | ||
---|---|---|
154 | 154 |
|
155 | 155 |
@sysprep('Enabling ping responses') |
156 | 156 |
def enable_pings(self): |
157 |
"""Enable ping responces"""
|
|
157 |
"""Enable ping responses"""
|
|
158 | 158 |
|
159 | 159 |
self._guest_exec('netsh firewall set icmpsetting 8') |
160 | 160 |
|
... | ... | |
179 | 179 |
self._guest_exec( |
180 | 180 |
r"cmd /q /c for /f %l in ('wevtutil el') do wevtutil cl %l") |
181 | 181 |
|
182 |
@sysprep('Executing sysprep on the image (may take more that 10 minutes)')
|
|
182 |
@sysprep('Executing Sysprep on the image (may take more that 10 minutes)')
|
|
183 | 183 |
def microsoft_sysprep(self): |
184 | 184 |
"""Run the Microsoft System Preparation Tool. This will remove |
185 | 185 |
system-specific data and will make the image ready to be deployed. |
... | ... | |
697 | 697 |
|
698 | 698 |
if rc != 0 and fatal: |
699 | 699 |
reason = stderr if len(stderr) else stdout |
700 |
self.out.output("Command: `%s' failed. Reason: %s" % |
|
701 |
(command, reason)) |
|
702 |
raise FatalError("Command: `%s' failed. Reason: %s" % |
|
703 |
(command, reason)) |
|
700 |
self.out.output("Command: `%s' failed (rc=%d). Reason: %s" %
|
|
701 |
(command, rc, reason))
|
|
702 |
raise FatalError("Command: `%s' failed (rc=%d). Reason: %s" %
|
|
703 |
(command, rc, reason))
|
|
704 | 704 |
|
705 | 705 |
return (stdout, stderr, rc) |
706 | 706 |
|
Also available in: Unified diff