mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 09:23:56 +00:00
win_pkg: allow minion upgrade when using batteries
Don't prevent the Scheduled Task option from doing package operations, when the system is running on batteries
This commit is contained in:
parent
6d0d52fa86
commit
e0978220f7
@ -694,7 +694,9 @@ def install(name=None, refresh=False, pkgs=None, saltenv='base', **kwargs):
|
|||||||
start_in=cache_path,
|
start_in=cache_path,
|
||||||
trigger_type='Once',
|
trigger_type='Once',
|
||||||
start_date='1975-01-01',
|
start_date='1975-01-01',
|
||||||
start_time='01:00')
|
start_time='01:00',
|
||||||
|
ac_only=False,
|
||||||
|
stop_if_on_batteries=False)
|
||||||
# Run Scheduled Task
|
# Run Scheduled Task
|
||||||
__salt__['task.run_wait'](name='update-salt-software')
|
__salt__['task.run_wait'](name='update-salt-software')
|
||||||
else:
|
else:
|
||||||
@ -953,7 +955,9 @@ def remove(name=None, pkgs=None, version=None, **kwargs):
|
|||||||
start_in=cache_path,
|
start_in=cache_path,
|
||||||
trigger_type='Once',
|
trigger_type='Once',
|
||||||
start_date='1975-01-01',
|
start_date='1975-01-01',
|
||||||
start_time='01:00')
|
start_time='01:00',
|
||||||
|
ac_only=False,
|
||||||
|
stop_if_on_batteries=False)
|
||||||
# Run Scheduled Task
|
# Run Scheduled Task
|
||||||
__salt__['task.run_wait'](name='update-salt-software')
|
__salt__['task.run_wait'](name='update-salt-software')
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user