mirror of
https://github.com/puppetlabs/vmfloaty.git
synced 2026-01-26 05:28:40 -05:00
Add ondemand flag and api v2 support to floaty ssh
This commit is contained in:
parent
4103fdeccc
commit
667dacbcea
4 changed files with 115 additions and 34 deletions
|
|
@ -87,7 +87,7 @@ class Service
|
|||
@service_object.wait_for_request verbose, requestid, url
|
||||
end
|
||||
|
||||
def ssh(verbose, host_os, use_token = true)
|
||||
def ssh(verbose, host_os, use_token = true, ondemand = nil)
|
||||
token_value = nil
|
||||
if use_token
|
||||
begin
|
||||
|
|
@ -97,7 +97,7 @@ class Service
|
|||
FloatyLogger.info 'Could not get token... requesting vm without a token anyway...'
|
||||
end
|
||||
end
|
||||
Ssh.ssh(verbose, self, host_os, token_value)
|
||||
Ssh.ssh(verbose, self, host_os, token_value, ondemand)
|
||||
end
|
||||
|
||||
def query(verbose, hostname)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue