diff options
author | George Kraft <george.kraft@calxeda.com> | 2013-12-10 11:11:20 -0600 |
---|---|---|
committer | George Kraft <george.kraft@calxeda.com> | 2013-12-10 11:11:20 -0600 |
commit | 765e1ff993179b7727526713e1d6745635b0ad91 (patch) | |
tree | 277760b2e2f361cbe6bcf640f726372b5ec844fc | |
parent | 4a1acab2378ee19cdf33d6e1f6ff69c4227273c6 (diff) | |
download | cxmanage-765e1ff993179b7727526713e1d6745635b0ad91.tar.gz |
CXMAN-267: Catch ParseError in fabric.refresh()
We can get a ParseError if one of the IPs is 0.0.0.0. We should
catch that case and retry.
-rw-r--r-- | cxmanage_api/fabric.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cxmanage_api/fabric.py b/cxmanage_api/fabric.py index bdf38b0..e86170d 100644 --- a/cxmanage_api/fabric.py +++ b/cxmanage_api/fabric.py @@ -38,7 +38,7 @@ from cxmanage_api.tasks import DEFAULT_TASK_QUEUE from cxmanage_api.tftp import InternalTftp from cxmanage_api.node import Node as NODE from cxmanage_api.cx_exceptions import CommandFailedError, TimeoutError, \ - IpmiError, TftpException + IpmiError, TftpException, ParseError # pylint: disable=R0902,R0903, R0904 @@ -243,7 +243,7 @@ class Fabric(object): self._nodes = get_nodes() if len(self._nodes) >= initial_node_count: break - except (IpmiError, TftpException): + except (IpmiError, TftpException, ParseError): pass else: raise TimeoutError( |