
Adds a CLI to oslo_utils.imageutils which can be used to validate images. Example usages: $ python -m oslo_utils.imageutils -i ./gpt-image.raw -v SAFETY_CHECK_PASSED=True VIRTUAL_SIZE=262144 ACTUAL_SIZE=262144 IMAGE_FORMAT='gpt' OSLO_UTILS_VERSION='7.4.0.dev1' $ python -m oslo_utils.imageutils -i ./bad-qed.qed -v SAFETY_CHECK_PASSED=False VIRTUAL_SIZE=262144 ACTUAL_SIZE=262144 IMAGE_FORMAT='qed' OSLO_UTILS_VERSION='7.4.0.dev2' FAILURE_REASONS='banned: This file format is not allowed' Change-Id: Ia94fa0431a55ab599ffd7385f2be1b18cf4bb1c4
19 lines
690 B
Python
19 lines
690 B
Python
# Copyright 2016 OpenStack Foundation
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License"); you may
|
|
# not use this file except in compliance with the License. You may obtain
|
|
# a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
|
# License for the specific language governing permissions and limitations
|
|
# under the License.
|
|
|
|
|
|
import pbr.version
|
|
|
|
version_info = pbr.version.VersionInfo('oslo.utils')
|