commit 79543a67edd7a15aa23426548d3be9ac5b99366d
Author: Brian Rosmaita <email address hidden>
Date: Thu Mar 22 15:49:44 2018 -0400
Make image-create-via-import fail faster
Add checks to the image-create-via-import commmand so that it provides
better user feedback and doesn't begin the import workflow unless the
input has a chance of succeeding. Preserves backward compatibility
with the current image-create command by (1) allowing an image record
only to be created when no import-method is specified AND no data is
supplied, and (2) doing the glance-direct workflow when no import-
method is specified AND data is provided. Also adds the ability for
the import-method to be set as an env var OS_IMAGE_IMPORT_METHOD.
Reviewed: https:/ /review. openstack. org/555550 /git.openstack. org/cgit/ openstack/ python- glanceclient/ commit/ ?id=79543a67edd 7a15aa23426548d 3be9ac5b99366d
Committed: https:/
Submitter: Zuul
Branch: master
commit 79543a67edd7a15 aa23426548d3be9 ac5b99366d
Author: Brian Rosmaita <email address hidden>
Date: Thu Mar 22 15:49:44 2018 -0400
Make image-create- via-import fail faster
Add checks to the image-create- via-import commmand so that it provides IMPORT_ METHOD.
better user feedback and doesn't begin the import workflow unless the
input has a chance of succeeding. Preserves backward compatibility
with the current image-create command by (1) allowing an image record
only to be created when no import-method is specified AND no data is
supplied, and (2) doing the glance-direct workflow when no import-
method is specified AND data is provided. Also adds the ability for
the import-method to be set as an env var OS_IMAGE_
Change-Id: I0a225f5471a931 1217b5d90ebb5fd 415c369129a
Closes-bug: #1758149