machines.assign_ip shouldn't fail if node is not ready
Related-Prod: PROD-36319
Change-Id: I71a476d96536a4a2b3d462ee80cfed6db51dee5a
diff --git a/_modules/maas.py b/_modules/maas.py
index 150fd1b..8b07fbc 100644
--- a/_modules/maas.py
+++ b/_modules/maas.py
@@ -650,8 +650,10 @@
LOG.debug("Skipping node:{} "
"since it in status:DEPLOYED".format(name))
return
+ # Shouldn't raise an error due to PROD-36319
if machine['status'] != self.READY:
- raise Exception('Machine:{} not in status:READY'.format(name))
+ LOG.debug('Machine:{} not in status:READY'.format(name))
+ return
# backward comparability, for old schema
if data.get("interface", None):
if 'ip' not in data["interface"]: