mirror of
https://github.com/puppetlabs/vmpooler.git
synced 2026-01-27 02:18:41 -05:00
(maint) cosmetic cleanup in spec helper
This commit is contained in:
parent
15b5d328ab
commit
ab88720496
1 changed files with 2 additions and 2 deletions
|
|
@ -30,13 +30,13 @@ end
|
||||||
|
|
||||||
def create_ready_vm(template, name, token = nil)
|
def create_ready_vm(template, name, token = nil)
|
||||||
create_vm(name, token)
|
create_vm(name, token)
|
||||||
redis.sadd('vmpooler__ready__' + template, name)
|
redis.sadd("vmpooler__ready__#{template}", name)
|
||||||
redis.hset("vmpooler_vm_#{name}", "template", template)
|
redis.hset("vmpooler_vm_#{name}", "template", template)
|
||||||
end
|
end
|
||||||
|
|
||||||
def create_running_vm(template, name, token = nil)
|
def create_running_vm(template, name, token = nil)
|
||||||
create_vm(name, token)
|
create_vm(name, token)
|
||||||
redis.sadd('vmpooler__running__' + template, name)
|
redis.sadd("vmpooler__running__#{template}", name)
|
||||||
redis.hset("vmpooler__vm__#{name}", "template", template)
|
redis.hset("vmpooler__vm__#{name}", "template", template)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue