nova-compute revision 5403
199767f8919635c4928607450d9e0abb932109ceToomas Soome# Copyright (c) 2013, 2016, Oracle and/or its affiliates. All rights reserved.
199767f8919635c4928607450d9e0abb932109ceToomas Soome# Licensed under the Apache License, Version 2.0 (the "License"); you may
199767f8919635c4928607450d9e0abb932109ceToomas Soome# not use this file except in compliance with the License. You may obtain
199767f8919635c4928607450d9e0abb932109ceToomas Soome# a copy of the License at
199767f8919635c4928607450d9e0abb932109ceToomas Soome# Unless required by applicable law or agreed to in writing, software
199767f8919635c4928607450d9e0abb932109ceToomas Soome# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
199767f8919635c4928607450d9e0abb932109ceToomas Soome# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
199767f8919635c4928607450d9e0abb932109ceToomas Soome# License for the specific language governing permissions and limitations
199767f8919635c4928607450d9e0abb932109ceToomas Soome# under the License.
199767f8919635c4928607450d9e0abb932109ceToomas Soomefrom subprocess import CalledProcessError, Popen, PIPE, check_call
199767f8919635c4928607450d9e0abb932109ceToomas Soome # retrieve dataset path for suspend images
199767f8919635c4928607450d9e0abb932109ceToomas Soome # retrieve the suspend path or just get the default
try:
try: