[rhinstaller/anaconda/pulls/265 master] Add few docs and improvement in check_ip_address

bcl installerbot-noreply at redhat.com
Sat Aug 1 00:02:03 UTC 2015


> @@ -80,6 +80,16 @@ def setup_ifcfg_log():
>      ifcfglog = logging.getLogger("ifcfg")
>  
>  def check_ip_address(address, version=None):
> +    """
> +    Check if the given IP address is valid in given version if set.
> +
> +    :param str address: IP address for testing
> +    :param int version: ``4`` for IPv4, ``6`` for IPv6 or
> +                        nothing if we don't care

I think it would be clearer to say something like "or None to allow either format."

-- 
To view this pull request on github, visit https://github.com/rhinstaller/anaconda/pull/265#discussion_r36026943


More information about the anaconda-patches mailing list