Be specific about glance API version when uploading metadata

The command is apparently not available in some versions of
the API so be specific.
This commit is contained in:
Rob Crittenden 2016-08-31 11:33:50 -04:00
parent 19b9e92b26
commit 6a89da3d12
1 changed files with 2 additions and 0 deletions

View File

@ -189,6 +189,8 @@ def install(args):
logger.info('Importing IPA metadata')
(stdout, stderr, returncode) = run(
['glance',
'--os-image-api-version',
'2',
'md-namespace-import',
'--file',
'/usr/share/novajoin/freeipa.json'], raiseonerr=False)