mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
catch SIGPIPE in vmware connection
This commit is contained in:
parent
048b9f6b9d
commit
ce3472cec2
1 changed files with 5 additions and 0 deletions
|
@ -75,6 +75,7 @@ You should see output related to the ESXi host's syslog configuration.
|
|||
# Import Python Libs
|
||||
from __future__ import absolute_import
|
||||
import atexit
|
||||
import errno
|
||||
import logging
|
||||
import time
|
||||
from salt.ext.six.moves.http_client import BadStatusLine # pylint: disable=E0611
|
||||
|
@ -449,6 +450,10 @@ def get_mors_with_properties(service_instance, object_type, property_list=None,
|
|||
content = get_content(*content_args, **content_kwargs)
|
||||
except BadStatusLine:
|
||||
content = get_content(*content_args, **content_kwargs)
|
||||
except IOError as e:
|
||||
if e.errno != errno.EPIPE:
|
||||
raise e
|
||||
content = get_content(*content_args, **content_kwargs)
|
||||
|
||||
object_list = []
|
||||
for obj in content:
|
||||
|
|
Loading…
Add table
Reference in a new issue