Skip to content

Commit

Permalink
python: Fix api_test to use the new attach() API
Browse files Browse the repository at this point in the history
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>
  • Loading branch information
stgraber committed Sep 3, 2013
1 parent 80bcb05 commit ca9548a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/python-lxc/examples/api_test.py
Expand Up @@ -98,7 +98,8 @@
ips = container.get_ips()
time.sleep(1)
count += 1
container.attach("NETWORK|UTSNAME", "/sbin/ifconfig", "eth0")
container.attach_wait(lxc.attach_run_command, ["ifconfig", "eth0"],
namespaces=(lxc.CLONE_NEWNET + lxc.CLONE_NEWUTS))

# A few basic checks of the current state
assert(len(ips) > 0)
Expand Down

0 comments on commit ca9548a

Please sign in to comment.