Fixed logic for windows fallback

Silly error - should have been the other way around.
This commit is contained in:
Jochen Breuer 2017-09-20 10:12:32 +02:00
parent 3b1cb884b9
commit 4e8da3045f
No known key found for this signature in database
GPG Key ID: 29ACE79F4D5EEE69

View File

@ -83,7 +83,7 @@ def __virtual__():
return False, 'python kubernetes library not found'
if salt.utils.is_windows():
if not salt.utils.is_windows():
@contextmanager
def _time_limit(seconds):
def signal_handler(signum, frame):
@ -713,7 +713,7 @@ def delete_deployment(name, namespace='default', **kwargs):
namespace=namespace,
body=body)
mutable_api_response = api_response.to_dict()
if salt.utils.is_windows():
if not salt.utils.is_windows():
try:
with _time_limit(POLLING_TIME_LIMIT):
while show_deployment(name, namespace) is not None: