a077c70 Fix ipa config-mod --ca-renewal-master

2 files Authored by frenaud 6 years ago, Committed by tkrizek 6 years ago,
    Fix ipa config-mod --ca-renewal-master
    
    commit bddb90f38a3505a2768862d2f814c5e749a7dcde added the support for
    multivalued server attributes (for pkinit_server_server), but this
    introduced an API change where the setter and getter of ServerAttribute
    are expecting list of values.
    
    When a SingleValuedServerAttribute is used, we need to convert one elem
    into a list containing this elem and vice-versa, so that the ipa config-mod
    and ipa config_show APIs are not modified.
    
    https://pagure.io/freeipa/issue/7120
    
    Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>
    Reviewed-By: Fraser Tweedale <ftweedal@redhat.com>