Andrew Bogott has uploaded a new change for review.

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

Change subject: Puppet panel:  Fill in formatted_params in cached class list.
......................................................................

Puppet panel:  Fill in formatted_params in cached class list.

This was accidentally omitted in an earlier patch; adding this should
get the 'apply' dialogues back in shape.

Change-Id: I4f8f0d1359b3a10b749a244d027be9d988905464
---
M modules/openstack/files/liberty/horizon/puppettab/puppet_roles.py
1 file changed, 4 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/puppet 
refs/changes/66/312266/1

diff --git a/modules/openstack/files/liberty/horizon/puppettab/puppet_roles.py 
b/modules/openstack/files/liberty/horizon/puppettab/puppet_roles.py
index 371d4ff..4baaf59 100644
--- a/modules/openstack/files/liberty/horizon/puppettab/puppet_roles.py
+++ b/modules/openstack/files/liberty/horizon/puppettab/puppet_roles.py
@@ -98,6 +98,10 @@
             if 'parameters' in role:
                 obj.params = role['parameters']
                 obj.raw_params = role['parameters']
+                keysanddefaults = []
+                for param in obj.params.items():
+                    keysanddefaults.append("%s: %s" % param)
+                obj.formatted_params = ";\n".join(keysanddefaults)
 
             if 'doc' in role and (role['doc'].find('filtertags') != -1):
                 #  Collect filter tags from the role comment,

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I4f8f0d1359b3a10b749a244d027be9d988905464
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Andrew Bogott <abog...@wikimedia.org>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to