178
179
180
181
182
183
184
185
186
187
188
189
190
|
# File 'lib/puppet/util/hpe3par_api.rb', line 178
def restore_snapshot_offline(snapshot_name, priority, allow_remote_copy_parent, debug = false)
cl = Hpe3parSdk::Client.new(@rest_url, debug: debug)
begin
cl.login(@url.user, @url.password)
optional = {:online => false,
:allowRemoteCopyParent => allow_remote_copy_parent
}
optional[:priority] = Hpe3parSdk::TaskPriority.const_get(priority)
cl.restore_snapshot(snapshot_name, optional)
ensure
cl.logout
end
end
|