Remove more --image-type

This commit is contained in:
Ian Gulliver
2016-03-31 17:29:10 -07:00
parent 5c84ce70cd
commit 0052478fbf
2 changed files with 2 additions and 14 deletions

View File

@@ -27,11 +27,6 @@ parser.add_argument(
dest='device',
action='store',
required=True)
parser.add_argument(
'--image-type',
dest='image_type',
action='store',
required=True)
parser.add_argument(
'--persistent-percent',
dest='persistent_percent',
@@ -76,12 +71,11 @@ description "AutoImage"
start on filesystem
script
/autoimage/server/image.py --device=%(device)s --persistent-percent=%(persistent_percent)d --ca-cert=/autoimage/config/ca.cert.pem --image-type=%(image_type)s --base-url=%(base_url)s
/autoimage/server/image.py --device=%(device)s --persistent-percent=%(persistent_percent)d --ca-cert=/autoimage/config/ca.cert.pem --base-url=%(base_url)s
end script
""" % {
'device': FLAGS.device,
'persistent_percent': FLAGS.persistent_percent,
'image_type': FLAGS.image_type,
'base_url': FLAGS.base_url,
})

View File

@@ -22,11 +22,6 @@ parser.add_argument(
dest='chroot_path',
action='store',
required=True)
parser.add_argument(
'--image-type',
dest='image_type',
action='store',
required=True)
FLAGS = parser.parse_args()
@@ -58,8 +53,7 @@ def main():
path = os.path.join(FLAGS.chroot_path, 'iconograph', 'client', 'flags')
with open(path, 'w') as fh:
fh.write('--image-type=%(image_type)s --base-url=%(base_url)s\n' % {
'image_type': FLAGS.image_type,
fh.write('--base-url=%(base_url)s\n' % {
'base_url': FLAGS.base_url,
})