mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Fix typos
This commit is contained in:
parent
10458d8a70
commit
b8ee89f18e
2 changed files with 2 additions and 5 deletions
|
@ -270,7 +270,7 @@ def add_feature(feature,
|
|||
cmd = ['DISM',
|
||||
'/Quiet',
|
||||
'/Image:{0}'.format(image) if image else '/Online',
|
||||
'/Enable-Feature'
|
||||
'/Enable-Feature',
|
||||
'/FeatureName:{0}'.format(feature)]
|
||||
if package:
|
||||
cmd.append('/PackageName:{0}'.format(package))
|
||||
|
@ -311,7 +311,7 @@ def remove_feature(feature, remove_payload=False, image=None, restart=False):
|
|||
cmd = ['DISM',
|
||||
'/Quiet',
|
||||
'/Image:{0}'.format(image) if image else '/Online',
|
||||
'/Disable-Feature'
|
||||
'/Disable-Feature',
|
||||
'/FeatureName:{0}'.format(feature)]
|
||||
|
||||
if remove_payload:
|
||||
|
|
|
@ -32,9 +32,6 @@ def __virtual__():
|
|||
if not salt.utils.is_windows():
|
||||
return False, 'Module only available on Windows'
|
||||
|
||||
if 'dism.add_capability' not in __salt__:
|
||||
return False, 'DISM module not available'
|
||||
|
||||
return __virtualname__
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue