[Kimchi-devel] [PATCH] Typo: Rename function create_defautl_network

Daniel H Barboza danielhb at linux.vnet.ibm.com
Wed Jun 18 21:26:51 UTC 2014


Reviewed-by: Daniel Barboza <danielhb at linux.vnet.ibm.com>

On 06/18/2014 04:38 PM, Crístian Viana wrote:
> The inner function create_defautl_network is mistyped.
>
> Fix the function name by renaming it to create_default_network.
>
> Signed-off-by: Crístian Viana <vianac at linux.vnet.ibm.com>
> ---
>   src/kimchi/model/networks.py | 6 +++---
>   1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/src/kimchi/model/networks.py b/src/kimchi/model/networks.py
> index 63886e0..85148a0 100644
> --- a/src/kimchi/model/networks.py
> +++ b/src/kimchi/model/networks.py
> @@ -43,7 +43,7 @@ class NetworksModel(object):
>               self._default_network_check()
>   
>       def _default_network_check(self):
> -        def create_defautl_network():
> +        def create_default_network():
>               try:
>                   subnet = self._get_available_address(knetwork.DefaultNetsPool)
>                   params = {"name": "default", "connection": "nat",
> @@ -59,7 +59,7 @@ class NetworksModel(object):
>           try:
>               net = conn.networkLookupByName("default")
>           except libvirt.libvirtError:
> -            net = create_defautl_network()
> +            net = create_default_network()
>   
>           if net.isActive() == 0:
>               try:
> @@ -72,7 +72,7 @@ class NetworksModel(object):
>                       # libvirt do not support update IP element, so delete the
>                       # the network and create new one.
>                       net.undefine()
> -                    create_defautl_network()
> +                    create_default_network()
>                   else:
>                       kimchi_log.error("Fatal: Cannot activate default network "
>                                        "because of %s, exit kimchid", e.message)




More information about the Kimchi-devel mailing list