Skip to content

Commit

Permalink
Fix anynines cf login command with proper parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
drogus committed Oct 19, 2016
1 parent e771d36 commit 6a83a9f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/dpl/provider/anynines.rb
Expand Up @@ -5,7 +5,7 @@ class Anynines < CloudFoundry
def check_auth
initial_go_tools_install
context.shell "./cf api https://api.aws.ie.a9s.eu"
context.shell "./cf login --u #{option(:username)} --p #{option(:password)} --o #{option(:organization)} --s #{option(:space)}"
context.shell "./cf login -u #{option(:username)} -p #{option(:password)} -o #{option(:organization)} -s #{option(:space)}"
end

end
Expand Down
2 changes: 1 addition & 1 deletion spec/provider/anynines_spec.rb
Expand Up @@ -13,7 +13,7 @@
example do
expect(provider.context).to receive(:shell).with('wget \'https://cli.run.pivotal.io/stable?release=linux64-binary&source=github\' -qO cf-linux-amd64.tgz && tar -zxvf cf-linux-amd64.tgz && rm cf-linux-amd64.tgz')
expect(provider.context).to receive(:shell).with('./cf api https://api.aws.ie.a9s.eu')
expect(provider.context).to receive(:shell).with('./cf login --u mallomar --p myreallyawesomepassword --o myorg --s outer')
expect(provider.context).to receive(:shell).with('./cf login -u mallomar -p myreallyawesomepassword -o myorg -s outer')
provider.check_auth
end
end
Expand Down

0 comments on commit 6a83a9f

Please sign in to comment.