The args for the command could not be parsed
because samba-tool detects the '-' and thinks its
part of the samba-tool command.
Signed-off-by: David Mulder <dmulder@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
hash.text = hashlib.md5(script_data).hexdigest().upper()
if args is not None:
parameters = ET.SubElement(listelement, 'parameters')
- parameters.text = args.strip('"').strip("'")
+ parameters.text = args.strip('"').strip("'").replace('\\-', '-')
if run_as is not None:
run_as_elm = ET.SubElement(listelement, 'run_as')
run_as_elm.text = run_as