Skip to content

Commit

Permalink
Update cloudfoundry.py (#90)
Browse files Browse the repository at this point in the history
adding single quotes around the password field to account for '$' being included in the password.
  • Loading branch information
jennylanham authored Jan 25, 2023
1 parent 95b5107 commit c4bee88
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions flow/cloud/cloudfoundry/cloudfoundry.py
Original file line number Diff line number Diff line change
Expand Up @@ -666,7 +666,7 @@ def _cf_login(self):
method = 'cf_login'
commons.print_msg(CloudFoundry.clazz, method, 'begin')

cmd = "{path}cf login -a {cf_api_endpoint} -u {cf_user} -p {cf_pwd} -o \"{cf_org}\" -s \"{cf_space}\" --skip-ssl-validation".format(
cmd = "{path}cf login -a {cf_api_endpoint} -u {cf_user} -p '{cf_pwd}' -o \"{cf_org}\" -s \"{cf_space}\" --skip-ssl-validation".format(
path=CloudFoundry.path_to_cf,
cf_api_endpoint=CloudFoundry.cf_api_endpoint,
cf_user=CloudFoundry.cf_user,
Expand All @@ -675,7 +675,7 @@ def _cf_login(self):
cf_space=CloudFoundry.cf_space
)

cmd_array = "{path}cf login -a {cf_api_endpoint} -u {cf_user} -p {cf_pwd} -o".format(
cmd_array = "{path}cf login -a {cf_api_endpoint} -u {cf_user} -p '{cf_pwd}' -o".format(
path=CloudFoundry.path_to_cf,
cf_api_endpoint=CloudFoundry.cf_api_endpoint,
cf_user=CloudFoundry.cf_user,
Expand Down

0 comments on commit c4bee88

Please sign in to comment.