diff options
author | Michael DeHaan <mdehaan@redhat.com> | 2009-01-05 14:44:16 -0500 |
---|---|---|
committer | Michael DeHaan <mdehaan@redhat.com> | 2009-01-05 14:44:16 -0500 |
commit | 352bc629bd1f7790e895aceb380dbe315356e835 (patch) | |
tree | 7ca7a2f908abd5fbbdf4e98b6547936e656639bf /cobbler/api.py | |
parent | 6e73337ad583f7dc52fad37aa8fcfe45abbf0842 (diff) | |
download | cobbler-352bc629bd1f7790e895aceb380dbe315356e835.tar.gz cobbler-352bc629bd1f7790e895aceb380dbe315356e835.tar.xz cobbler-352bc629bd1f7790e895aceb380dbe315356e835.zip |
(A) It is unneccessary to run restorecon when the contexts on the directories is already correct.
(B) Modify cobbler check code to suggest directories to set semanage rules on/for.
Diffstat (limited to 'cobbler/api.py')
-rw-r--r-- | cobbler/api.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/cobbler/api.py b/cobbler/api.py index 84c2c638..f4178239 100644 --- a/cobbler/api.py +++ b/cobbler/api.py @@ -511,7 +511,7 @@ class BootAPI: validator = action_validate.Validate(self._config) return validator.run() - def sync(self): + def sync(self,verbose=False): """ Take the values currently written to the configuration files in /etc, and /var, and build out the information tree found in @@ -519,10 +519,10 @@ class BootAPI: saved with serialize() will NOT be synchronized with this command. """ self.log("sync") - sync = self.get_sync() + sync = self.get_sync(verbose=verbose) return sync.run() - def get_sync(self): + def get_sync(self,verbose=False): self.dhcp = self.get_module_from_file( "dhcp", "module", @@ -533,7 +533,7 @@ class BootAPI: "module", "manage_bind" ).get_manager(self._config) - return action_sync.BootSync(self._config,dhcp=self.dhcp,dns=self.dns) + return action_sync.BootSync(self._config,dhcp=self.dhcp,dns=self.dns,verbose=verbose) def reposync(self, name=None, tries=1, nofail=False): """ |