[Freeipa-devel] [PATCH 0274] DNS: Check if dns package is installed

Tomas Babej tbabej at redhat.com
Thu Jul 2 10:57:29 UTC 2015



On 07/02/2015 08:50 AM, Petr Spacek wrote:
> On 1.7.2015 20:29, Tomas Babej wrote:
>>
>>
>> On 07/01/2015 04:45 PM, Petr Spacek wrote:
>>> On 1.7.2015 15:32, Martin Basti wrote:
>>>> https://fedorahosted.org/freeipa/ticket/4058
>>>> Requires patch freeipa-pspacek-0052
>>>
>>> ACK
>>>
>>
>> I must admit I don't really like wrapping a constant in the method in
>> the TaskNamespace object.
>>
>> We're interested in the constant itself - there's no case I can imagine
>> where the name of the freeipa's dns package will be dynamic.
>>
>> For paths we have BasePathNamespace that contains all the paths, maybe
>> we should introduce something similar for the non-path platform
>> dependent constants?
> 
> Generally I support this but it seems like a 4.3 material (and out of scope of
> #4058). We need to finish 4.2 now.
> 
> Please ACK or NACK ASAP.
> 

It's fairly straightforward to introduce a new platform namespace for
constants.

See attached patch, it implements the namespace and already contains the
proper values for the dns package name.

The original patch 274 would only need to use:

    >>> from ipaplatform.constants import constants
    >>> constants.DNS_PACKAGE_NAME
    'freeipa-server-dns'

Tomas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: freeipa-tbabej-0332-ipaplatform-Add-constants-submodule.patch
Type: text/x-patch
Size: 5034 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20150702/3c679623/attachment.bin>


More information about the Freeipa-devel mailing list