Merge "Remove dangerous arguments default"

This commit is contained in:
Jenkins 2014-08-12 05:27:19 +00:00 committed by Gerrit Code Review
commit c3c713e839

View File

@ -383,7 +383,10 @@ class IpNetnsCommand(IpCommandBase):
def delete(self, name):
self._as_root('delete', name, use_root_namespace=True)
def execute(self, cmds, addl_env={}, check_exit_code=True):
def execute(self, cmds, addl_env=None, check_exit_code=True):
if addl_env is None:
addl_env = dict()
if not self._parent.namespace:
raise Exception(_('No namespace defined for parent'))
else: