Andrew Bogott has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/293622

Change subject: Makedomain:  append a '.' on the requested domain if needed.
......................................................................

Makedomain:  append a '.' on the requested domain if needed.

You would not believe how much time I have wasted on this mistake

Change-Id: Ic40d0a8c0d2cda6f80fd1efbf613a0c247408889
---
M modules/openstack/files/liberty/virtscripts/makedomain
1 file changed, 3 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/puppet 
refs/changes/22/293622/1

diff --git a/modules/openstack/files/liberty/virtscripts/makedomain 
b/modules/openstack/files/liberty/virtscripts/makedomain
index 586bc3f..6f987cc 100755
--- a/modules/openstack/files/liberty/virtscripts/makedomain
+++ b/modules/openstack/files/liberty/virtscripts/makedomain
@@ -103,6 +103,9 @@
 
     args = argparser.parse_args()
 
+    if not args.domain.endswith('.'):
+        args.domain = "%s." % args.domain
+
     createdomain(args.keystone_url,
                  args.designate_user,
                  args.designate_pass,

-- 
To view, visit https://gerrit.wikimedia.org/r/293622
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ic40d0a8c0d2cda6f80fd1efbf613a0c247408889
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Andrew Bogott <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to