Start of getting autoimage back into shape

This commit is contained in:
Ian Gulliver
2016-05-17 23:05:57 +00:00
parent 862dead4fe
commit 1f406af2ee
3 changed files with 85 additions and 90 deletions

View File

@@ -62,8 +62,7 @@ parser.add_argument(
parser.add_argument(
'--volume-id',
dest='volume_id',
action='store',
required=True)
action='store')
FLAGS = parser.parse_args()
@@ -235,8 +234,8 @@ class ImageBuilder(object):
'image_type': self._image_type,
'timestamp': timestamp,
}
if FLAGS.volume_id:
info['volume_id'] = FLAGS.volume_id
if self._volume_id:
info['volume_id'] = self._volume_id
json.dump(info, fh, sort_keys=True, indent=4)
fh.write('\n')