Skip to content

Commit

Permalink
don't set space at cf login
Browse files Browse the repository at this point in the history
  • Loading branch information
TimHess committed Mar 25, 2024
1 parent 5609113 commit e1a087b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
5 changes: 2 additions & 3 deletions pysteel/cloudfoundry.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,16 @@ class CloudFoundry(object):
def __init__(self, context):
self._context = context

def login(self, api_url, username, password, org, space):
def login(self, api_url, username, password, org):
"""
Login to Cloud Foundry
:type api_url: str
:type username: str
:type password: str
:type org: str
:type space: str
"""
self._context.log.info('logging into Cloud Foundry')
cmd_s = 'cf login -a {} -u {} -p {} -o {} -s {}'.format(api_url, username, password, org, space)
cmd_s = 'cf login -a {} -u {} -p {} -o {}'.format(api_url, username, password, org)
command.Command(self._context, cmd_s).run()

def get_api_endpoint(self):
Expand Down
4 changes: 1 addition & 3 deletions pysteel/scaffold/cloudfoundry.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,7 @@ def setup(context, scenario):
context.options.cf.apiurl,
context.options.cf.username,
context.options.cf.password,
context.options.cf.org,
'development'
)
context.options.cf.org)
else:
context.log.info('CloudFoundry credentials not provided, assuming already logged in')
context.cf_space = context.options.cf.space
Expand Down

0 comments on commit e1a087b

Please sign in to comment.