diff --git a/hooks/pg_dir_hooks.py b/hooks/pg_dir_hooks.py index 939f3c5..6ba6cba 100755 --- a/hooks/pg_dir_hooks.py +++ b/hooks/pg_dir_hooks.py @@ -48,7 +48,7 @@ def install(): apt_install(pkg, options=['--force-yes'], fatal=True) load_iovisor() ensure_mtu() - add_lcm_key() + CONFIGS.write_all() @hooks.hook('director-relation-joined') diff --git a/unit_tests/test_pg_dir_hooks.py b/unit_tests/test_pg_dir_hooks.py index 979d9c7..de76231 100644 --- a/unit_tests/test_pg_dir_hooks.py +++ b/unit_tests/test_pg_dir_hooks.py @@ -57,7 +57,6 @@ class PGDirHooksTests(CharmTestCase): ]) self.load_iovisor.assert_called_with() self.ensure_mtu.assert_called_with() - self.add_lcm_key.assert_called_with() def test_config_changed_hook(self): self.add_lcm_key.return_value = 1