Sha256: 6ec868f50a628b23ae97f0d564af15770d11fb13eed3e715785784f6c9273d63
Contents?: true
Size: 605 Bytes
Versions: 8
Compression:
Stored size: 605 Bytes
Contents
module VagrantPlugins module OpenStack module Action class IsSnapshoting def initialize(app, env) @app = app end def call(env) if env[:machine].id infos = env[:openstack_compute].get_server_details(env[:machine].id) task = infos.body['server']['OS-EXT-STS:task_state'] if task == 'image_snapshot' || task == 'image_pending_upload' env[:result] = true else env[:result] = false end end @app.call(env) end end end end end
Version data entries
8 entries across 8 versions & 2 rubygems