mirror of
https://github.com/puppetlabs/vmfloaty.git
synced 2026-01-26 05:28:40 -05:00
(rubocop) Fix Layout/SpaceAfterComma
This commit is contained in:
parent
cecea8bc05
commit
9afae18ee2
3 changed files with 3 additions and 3 deletions
|
|
@ -51,7 +51,7 @@ class Vmfloaty
|
|||
os_types = Utils.generate_os_hash(args)
|
||||
|
||||
max_pool_request = 5
|
||||
large_pool_requests = os_types.select { |_,v| v > max_pool_request }
|
||||
large_pool_requests = os_types.select { |_, v| v > max_pool_request }
|
||||
if !large_pool_requests.empty? && !force
|
||||
STDERR.puts "Requesting vms over #{max_pool_request} requires a --force flag."
|
||||
STDERR.puts 'Try again with `floaty get --force`'
|
||||
|
|
|
|||
|
|
@ -153,7 +153,7 @@ BODY
|
|||
end
|
||||
|
||||
it 'retrieves a multiple vms with a token' do
|
||||
stub_request(:post,"#{@nspooler_url}/host/aix-7.1-power+solaris-10-sparc+solaris-10-sparc")
|
||||
stub_request(:post, "#{@nspooler_url}/host/aix-7.1-power+solaris-10-sparc+solaris-10-sparc")
|
||||
.with(:headers => @post_request_headers)
|
||||
.to_return(:status => 200, :body => @retrieve_response_body_many, :headers => {})
|
||||
|
||||
|
|
|
|||
|
|
@ -44,7 +44,7 @@ describe Service do
|
|||
|
||||
describe '#delete_token' do
|
||||
it 'deletes a token' do
|
||||
service = Service.new(MockOptions.new,'user' => 'first.last', 'url' => 'http://default.url')
|
||||
service = Service.new(MockOptions.new, 'user' => 'first.last', 'url' => 'http://default.url')
|
||||
allow(Commander::UI).to(receive(:password)
|
||||
.with('Enter your pooler service password:', '*')
|
||||
.and_return('hunter2'))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue