mirror of
https://github.com/puppetlabs/vmfloaty.git
synced 2026-01-26 05:28:40 -05:00
(rubocop) Fix Layout/SpaceAroundEqualsInParameterDefault
This commit is contained in:
parent
7cd0256a97
commit
eb0d31260f
2 changed files with 5 additions and 5 deletions
|
|
@ -1,25 +1,25 @@
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
class AuthError < StandardError
|
class AuthError < StandardError
|
||||||
def initialize(msg='Could not authenticate to pooler')
|
def initialize(msg = 'Could not authenticate to pooler')
|
||||||
super
|
super
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class TokenError < StandardError
|
class TokenError < StandardError
|
||||||
def initialize(msg='Could not do operation with token provided')
|
def initialize(msg = 'Could not do operation with token provided')
|
||||||
super
|
super
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class MissingParamError < StandardError
|
class MissingParamError < StandardError
|
||||||
def initialize(msg='Argument provided to function is missing')
|
def initialize(msg = 'Argument provided to function is missing')
|
||||||
super
|
super
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class ModifyError < StandardError
|
class ModifyError < StandardError
|
||||||
def initialize(msg='Could not modify VM')
|
def initialize(msg = 'Could not modify VM')
|
||||||
super
|
super
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ require 'json'
|
||||||
require 'vmfloaty/errors'
|
require 'vmfloaty/errors'
|
||||||
|
|
||||||
class Pooler
|
class Pooler
|
||||||
def self.list(verbose, url, os_filter=nil)
|
def self.list(verbose, url, os_filter = nil)
|
||||||
conn = Http.get_conn(verbose, url)
|
conn = Http.get_conn(verbose, url)
|
||||||
|
|
||||||
response = conn.get 'vm'
|
response = conn.get 'vm'
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue