From 1c68e83d98c25a5bf491f6872ceb591c13a14561 Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Tue, 19 Sep 2023 11:05:19 -0400 Subject: [PATCH] Fix bad refs to etree library --- client-cli/pvc/cli/cli.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/client-cli/pvc/cli/cli.py b/client-cli/pvc/cli/cli.py index 2590f22e..94641935 100644 --- a/client-cli/pvc/cli/cli.py +++ b/client-cli/pvc/cli/cli.py @@ -1188,10 +1188,8 @@ def cli_vm_modify( # Grab the current config current_vm_cfg_raw = vm_information.get("xml") - xml_data = etree.fromstring(current_vm_cfg_raw) - current_vm_cfgfile = ( - etree.tostring(xml_data, pretty_print=True).decode("utf8").strip() - ) + xml_data = fromstring(current_vm_cfg_raw) + current_vm_cfgfile = tostring(xml_data, pretty_print=True).decode("utf8").strip() if editor is True: new_vm_cfgfile = click.edit(