Léon Keijser wrote:
> Hi,
>
> I think i've stumbled upon a bug:
>
> [r...@xen1 xen]# cobbler profile edit --name=xenhost --server=10.1.4.165
>
> Values instance has no attribute 'server'
> File "/usr/lib/python2.4/site-packages/cobbler/cobbler.py", line 83,
> in main
> rc = BootCLI().run(sys.argv)
>
> File "/usr/lib/python2.4/site-packages/cobbler/cobbler.py", line 61,
> in run
> return self.loader.run(args)
>
> File "/usr/lib/python2.4/site-packages/cobbler/commands.py", line 122,
> in run
> return fn.run()
>
> File
> "/usr/lib/python2.4/site-packages/cobbler/modules/cli_profile.py", line
> 151, in run
> obj.set_server(self.options.server)
>
>
> [r...@xen1 xen]# rpm -q cobbler
> cobbler-1.4.1-1.el5
>
>
> regards,
>
>
> Léon
>
>
> _______________________________________________
> cobbler mailing list
> [email protected]
> https://fedorahosted.org/mailman/listinfo/cobbler
>
Yes, you have. A quick patch:
[mdeh...@localhost modules]$ git diff
diff --git a/cobbler/modules/cli_profile.py b/cobbler/modules/cli_profile.py
index 1f8a565..5ec60e7 100644
--- a/cobbler/modules/cli_profile.py
+++ b/cobbler/modules/cli_profile.py
@@ -148,7 +148,7 @@ class ProfileFunction(commands.CobblerFunction):
if self.options.dhcp_tag is not None:
obj.set_dhcp_tag(self.options.dhcp_tag)
if self.options.server_override is not None:
- obj.set_server(self.options.server)
+ obj.set_server(self.options.server_override)
if self.options.owners is not None:
obj.set_owners(self.options.owners)
I'll take a look at the other objects as well and make sure this gets
into both the devel and master branches.
We'll probably release 1.4.2 with accumulated fixes on Friday.
Thanks!
--Michael
_______________________________________________
cobbler mailing list
[email protected]
https://fedorahosted.org/mailman/listinfo/cobbler