Remove stale config dump from seed hypervisor host configure
The config dump was removed from host configure commands in I85670be7242bc436f73c689f027670b0938ba031, but somehow the seed hypervisor was missed. Change-Id: I4ae457a784423dcce96e51b4bb21219831acc854
This commit is contained in:
parent
0b1a052b0e
commit
49218b34db
@ -436,16 +436,6 @@ class SeedHypervisorHostConfigure(KollaAnsibleMixin, KayobeAnsibleMixin,
|
||||
|
||||
def take_action(self, parsed_args):
|
||||
self.app.LOG.debug("Configuring seed hypervisor host OS")
|
||||
# Explicitly request the dump-config tag to ensure this play runs even
|
||||
# if the user specified tags.
|
||||
ansible_user = self.run_kayobe_config_dump(
|
||||
parsed_args, host="seed-hypervisor",
|
||||
var_name="kayobe_ansible_user", tags="dump-config")
|
||||
if not ansible_user:
|
||||
self.app.LOG.error("Could not determine kayobe_ansible_user "
|
||||
"variable for seed hypervisor host")
|
||||
sys.exit(1)
|
||||
|
||||
# Allocate IP addresses.
|
||||
playbooks = _build_playbook_list("ip-allocation")
|
||||
self.run_kayobe_playbooks(parsed_args, playbooks,
|
||||
|
@ -297,25 +297,16 @@ class TestCase(unittest.TestCase):
|
||||
]
|
||||
self.assertEqual(expected_calls, mock_run.call_args_list)
|
||||
|
||||
@mock.patch.object(commands.KayobeAnsibleMixin,
|
||||
"run_kayobe_config_dump")
|
||||
@mock.patch.object(commands.KayobeAnsibleMixin,
|
||||
"run_kayobe_playbooks")
|
||||
def test_seed_hypervisor_host_configure(self, mock_run, mock_dump):
|
||||
def test_seed_hypervisor_host_configure(self, mock_run):
|
||||
command = commands.SeedHypervisorHostConfigure(TestApp(), [])
|
||||
parser = command.get_parser("test")
|
||||
parsed_args = parser.parse_args([])
|
||||
mock_dump.return_value = "stack"
|
||||
|
||||
result = command.run(parsed_args)
|
||||
self.assertEqual(0, result)
|
||||
|
||||
expected_calls = [
|
||||
mock.call(mock.ANY, host="seed-hypervisor",
|
||||
var_name="kayobe_ansible_user", tags="dump-config")
|
||||
]
|
||||
self.assertEqual(expected_calls, mock_dump.call_args_list)
|
||||
|
||||
expected_calls = [
|
||||
mock.call(
|
||||
mock.ANY,
|
||||
|
Loading…
x
Reference in New Issue
Block a user