diff options
author | Michael DeHaan <mdehaan@redhat.com> | 2008-11-14 16:34:55 -0500 |
---|---|---|
committer | Michael DeHaan <mdehaan@redhat.com> | 2008-11-14 16:34:55 -0500 |
commit | e0dcab7043f8898fb60c3c2b480a3a554f09df5f (patch) | |
tree | 1a82d2c29b835227deff5b12b2602ed489d327e8 /cobbler/commands.py | |
parent | ddb71dfd7ff5da0f6ec955eac3f8d6bea6b2a781 (diff) | |
download | cobbler-e0dcab7043f8898fb60c3c2b480a3a554f09df5f.tar.gz cobbler-e0dcab7043f8898fb60c3c2b480a3a554f09df5f.tar.xz cobbler-e0dcab7043f8898fb60c3c2b480a3a554f09df5f.zip |
Two security things -- restrict python imports within cheetah code, allow power-user and power-pass to be specified when running power commands instead of storing them in cobbler.
Diffstat (limited to 'cobbler/commands.py')
-rw-r--r-- | cobbler/commands.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cobbler/commands.py b/cobbler/commands.py index d2da685d..380f374c 100644 --- a/cobbler/commands.py +++ b/cobbler/commands.py @@ -276,21 +276,21 @@ class CobblerFunction: obj = collect_fn().find(self.options.name) if obj is None: raise CX(_("object not found")) - self.api.power_on(obj) + self.api.power_on(obj,self.options.power_user,self.options.power_pass) return None if "poweroff" in self.args: obj = collect_fn().find(self.options.name) if obj is None: raise CX(_("object not found")) - self.api.power_off(obj) + self.api.power_off(obj,self.options.power_user,self.options.power_pass) return None if "reboot" in self.args: obj = collect_fn().find(self.options.name) if obj is None: raise CX(_("object not found")) - self.api.reboot(obj) + self.api.reboot(obj,self.options.power_user,self.options.power_pass) return None if "remove" in self.args: |