summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortwm2016 <TM2086@att.com>2016-03-10 13:26:31 -0600
committerFederico Ceratto <federico.ceratto@hpe.com>2016-03-23 12:02:25 +0000
commitcadfb1d7218b7361f2be308365a940eb5e9c23b1 (patch)
tree6520679fef25653eb7b042f3f30b9abbfa3ab71b
parent35e1b35b17461a960ef22b6510f8ba2f6389b01a (diff)
downloaddesignate-cadfb1d7218b7361f2be308365a940eb5e9c23b1.tar.gz
Strip "\n" character from result
domain-create command never succeed when the backend is NSD4. "self._command(command)" returns not "ok" but "ok\n". Result is now stripped of the "\n" character Closes-Bug: #1537688 Change-Id: Iddd4f4abc1cdd116f8b7b1e50dcff134c6f2214b
-rw-r--r--designate/backend/impl_nsd4.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/designate/backend/impl_nsd4.py b/designate/backend/impl_nsd4.py
index f43c8a13..db92ab77 100644
--- a/designate/backend/impl_nsd4.py
+++ b/designate/backend/impl_nsd4.py
@@ -72,7 +72,7 @@ class NSD4Backend(base.Backend):
except (ssl.SSLError, socket.error) as e:
LOG.debug('NSD4 control call failure: %s' % e)
raise exceptions.Backend(e)
- if result != 'ok':
+ if result.rstrip("\n") != 'ok':
raise exceptions.Backend(result)
def create_domain(self, context, domain):