Fix ports cleanup on node unprovision

Set manage_network_ports also when re-running after
user prompt.

Change-Id: Idd9f7d09e4e6ddc532218c860801930e02923086
Closes-Bug: #1953067
This commit is contained in:
Harald Jensås 2021-12-02 20:04:13 +01:00
parent f49649074a
commit 538261ee8d
2 changed files with 2 additions and 2 deletions

View File

@ -441,7 +441,7 @@ class TestUnprovisionNode(fakes.TestOvercloudNode):
],
'all': True,
'prompt': False,
'manage_network_ports': False,
'manage_network_ports': True,
},
inventory='localhost,',
playbook='cli-overcloud-node-unprovision.yaml',

View File

@ -431,7 +431,7 @@ class UnprovisionNode(command.Command):
"baremetal_deployment": roles,
"all": parsed_args.all,
"prompt": False,
"manage_network_ports": parsed_args.network_ports,
"manage_network_ports": True,
}
)