summaryrefslogtreecommitdiffstats
path: root/cobbler/modules/cli_network.py
diff options
context:
space:
mode:
authorJohn Eckersberg <jeckersb@redhat.com>2009-02-09 14:29:31 -0500
committerJohn Eckersberg <jeckersb@redhat.com>2009-03-13 13:52:34 -0400
commitbfdd7754c875ae8ff88471f58d5238b82760f33e (patch)
treec61c94e3d0f0748eb9ca4d421040719886266884 /cobbler/modules/cli_network.py
parent34cdbe58d22b842eab7b2284e1a0d9bbe9de240c (diff)
downloadcobbler-bfdd7754c875ae8ff88471f58d5238b82760f33e.tar.gz
cobbler-bfdd7754c875ae8ff88471f58d5238b82760f33e.tar.xz
cobbler-bfdd7754c875ae8ff88471f58d5238b82760f33e.zip
broken state!
Diffstat (limited to 'cobbler/modules/cli_network.py')
-rw-r--r--cobbler/modules/cli_network.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/cobbler/modules/cli_network.py b/cobbler/modules/cli_network.py
index 16575052..ee18f59c 100644
--- a/cobbler/modules/cli_network.py
+++ b/cobbler/modules/cli_network.py
@@ -107,7 +107,12 @@ class NetworkFunction(commands.CobblerFunction):
if self.options.comment is not None:
obj.set_comment(self.options.comment)
- obj.update_free()
+ if 'add' in self.args:
+ obj.sync('add')
+ elif 'edit' in self.args:
+ obj.sync('edit')
+ elif 'remove' in self.args:
+ obj.sync('remove')
return self.object_manipulator_finish(obj, self.api.networks, self.options)