Skip to content
Browse files

api_test.py: Remove workarounds for API bugs

The script used to contain a workaround for back when create()
wouldn't properly flush the config and reload it.
As these issues have now been fixed, these workarounds can be removed.

Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
  • Loading branch information...
1 parent f4d921c commit 2ff0ef36dbf2f10c69bd207ceddf21e17ded44f8 @stgraber stgraber committed with hallyn Sep 13, 2012
Showing with 0 additions and 4 deletions.
  1. +0 −4 src/python-lxc/examples/api_test.py
View
4 src/python-lxc/examples/api_test.py
@@ -53,7 +53,6 @@
## Create a rootfs
print("Creating rootfs using '%s'" % LXC_TEMPLATE)
container.create(LXC_TEMPLATE)
-container.load_config() # FIXME: workaround for get_config_item segfault
assert(container.defined == True)
assert(container.name == CONTAINER_NAME
@@ -74,7 +73,6 @@
## Test the networking
print("Testing the networking")
-container.network.remove(0) # FIXME: workaround for get_config_item segfault
# A few basic checks of the current state
assert("name" in container.get_keys("lxc.network.0"))
@@ -142,8 +140,6 @@
print("Cloning the container")
clone = lxc.Container(CLONE_NAME)
clone.clone(container)
-clone.load_config() # FIXME: workaround for get_config_item segfault
-clone.network.remove(0) # FIXME: workaround for get_config_item segfault
clone.start()
clone.stop()
clone.destroy()

0 comments on commit 2ff0ef3

Please sign in to comment.
Something went wrong with that request. Please try again.