qvm-backup-restore: remove orphaned --replace-template option

This commit is contained in:
Rusty Bird 2018-02-23 02:09:03 +00:00
parent 26a96fd034
commit a0d6327532
No known key found for this signature in database
GPG Key ID: 469D78F47AAF2ADF
2 changed files with 0 additions and 13 deletions

View File

@ -53,11 +53,6 @@ Options
Restore VMs that are already present on the host under different names
.. option:: --replace-template=REPLACE_TEMPLATE
Restore VMs using another template, syntax:
``old-template-name:new-template-name`` (might be repeated)
.. option:: --exclude=EXCLUDE, -x EXCLUDE
Skip restore of specified VM (might be repeated)

View File

@ -55,12 +55,6 @@ parser.add_argument("--rename-conflicting", action="store_true",
help="Restore VMs that are already present on the host "
"under different names")
parser.add_argument("--replace-template", action="append",
dest="replace_template", default=[],
help="Restore VMs using another TemplateVM; syntax: "
"old-template-name:new-template-name (may be "
"repeated)")
parser.add_argument("-x", "--exclude", action="append", dest="exclude",
default=[],
help="Skip restore of specified VM (may be repeated)")
@ -229,8 +223,6 @@ def main(args=None, app=None):
if args.ignore_missing:
backup.options.use_default_template = True
backup.options.use_default_netvm = True
if args.replace_template:
backup.options.replace_template = args.replace_template
if args.rename_conflicting:
backup.options.rename_conflicting = True
if not args.dom0_home: