1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2025-09-03 11:52:36 +01:00

framework/execution: Implement reboot policies

Although the configuration of reboot policies was present the actual
implementation was missing.
This commit is contained in:
Marc Bonnici
2018-05-22 14:55:21 +01:00
committed by setrofim
parent 1a67a3a4e5
commit 78d5b18182
2 changed files with 9 additions and 2 deletions

View File

@@ -78,8 +78,8 @@ class RebootPolicy(object):
return self.policy != 'never'
@property
def perform_initial_boot(self):
return self.policy not in ['never', 'as_needed']
def perform_initial_reboot(self):
return self.policy == 'initial'
@property
def reboot_on_each_job(self):