Permalink
Browse files

Strip out colon chars from capability and options in ppd

  • Loading branch information...
simoncadman committed May 26, 2013
1 parent ffd2d49 commit 9566d78be20adda58611ca3fd55c7d51770c1d22
Showing with 3 additions and 3 deletions.
  1. +3 −3 dynamicppd.py
View
@@ -109,12 +109,12 @@ def showUsage():
else:
capabilityName = capability['name']
if capability['type'] == 'Feature':
- ppddetails += '*OpenUI *GCP_' + capability['name'].replace(':','_') + '/' + capabilityName +': PickOne' + "\n"
+ ppddetails += '*OpenUI *GCP_' + capability['name'].replace(':','_') + '/' + capabilityName.replace(':','_') +': PickOne' + "\n"
for option in capability['options']:
if 'default' in option and option['default'] == True:
ppddetails += '*DefaultGCP_' + capability['name'].replace(':','_') + ': ' + option['name'] + "\n"
- ppddetails += '*GCP_' + capability['name'].replace(':','_') + ' ' + option['displayName'] + ':' + option['name'] + '' + "\n"
- ppddetails += '*CloseUI: *GCP_' + capabilityName + "\n"
+ ppddetails += '*GCP_' + capability['name'].replace(':','_') + ' ' + option['displayName'].replace(':','_') + ':' + option['name'].replace(':','_') + '' + "\n"
+ ppddetails += '*CloseUI: *GCP_' + capabilityName.replace(':','_') + "\n"
elif capability['type'] == 'ParameterDef':
pass
#print capabilityName

0 comments on commit 9566d78

Please sign in to comment.