Merge "Fix privileged create_netns function" into stable/ussuri

This commit is contained in:
Zuul 2022-01-10 22:31:58 +00:00 committed by Gerrit Code Review
commit d304feac83
1 changed files with 1 additions and 1 deletions

View File

@ -534,7 +534,7 @@ def create_netns(name, **kwargs):
pid = os.fork() pid = os.fork()
if pid == 0: if pid == 0:
try: try:
netns.create(name, libc=_get_cdll()) netns._create(name, libc=_get_cdll())
except OSError as e: except OSError as e:
if e.errno != errno.EEXIST: if e.errno != errno.EEXIST:
os._exit(1) os._exit(1)