[prev in list] [next in list] [prev in thread] [next in thread] 

List:       cobbler-devel
Subject:    Re: [PATCH 2/6] select systems from the webui
From:       Jörgen_Maas <jorgen.maas () gmail ! com>
Date:       2011-08-22 7:41:37
Message-ID: CAL3dZDcnHohLzsdpY-g_9YBgbkyHAYxxT9riyEX_A+pWaRpTwA () mail ! gmail ! com
[Download RAW message or body]

Ok, i'll resend the updated patches again.
Thanks

On Mon, Aug 22, 2011 at 4:56 AM, James Cammarata <jimi@sngx.net> wrote:
> On Sun, Aug 21, 2011 at 4:10 AM, Jörgen Maas <jorgen.maas@gmail.com> wrote:
>> Hi James, others,
>>
>> If i adjust the code to something like:
>>
>>       if systems is not None: # this check isn't really needed
>> anymore since it's done in the utils function aswell
>>          which_systems = utils.input_string_or_list(systems)
>>       else:
>>          which_systems = []
>>
>> The behaviour from the CLI will be like this:
>> [root@daemon /]# cobbler buildiso --systems="x doosje"
>>
>> Which is ok by me, but it isn't very consistent with other CLI commands, e.g.:
>> [root@daemon /]# cobbler profile report --name="bla natty"
>> No profile found: bla natty
>>
>> Is this approach, in your opinion, still okay for buildiso?
>> Shouldn't we ideally make this behaviour the same for all other commands too?
>>
>> Thoughts?
>
> Buildiso has always had some oddities, and I'm of the opinion it
> should be made to match the other CLI commands if it doesn't now. On
> the other hand, having an empty system list IS a valid state for
> buildiso, so I don't think the above should be considered an
> inconsistency.
> _______________________________________________
> cobbler-devel mailing list
> cobbler-devel@lists.fedorahosted.org
> https://fedorahosted.org/mailman/listinfo/cobbler-devel
>
_______________________________________________
cobbler-devel mailing list
cobbler-devel@lists.fedorahosted.org
https://fedorahosted.org/mailman/listinfo/cobbler-devel

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic