diff --git a/server/modules/autoimage.py b/server/modules/autoimage.py index 22070bd..fa26152 100755 --- a/server/modules/autoimage.py +++ b/server/modules/autoimage.py @@ -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, }) diff --git a/server/modules/iconograph.py b/server/modules/iconograph.py index 428406d..a2afef4 100755 --- a/server/modules/iconograph.py +++ b/server/modules/iconograph.py @@ -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, })