Closed larsbutler closed 10 years ago
Because there is no standard cli tool to create empty Swift container I think we need to create it, if it does not exist.
Actually, you can create empty Swift containers using python-swiftclient
: $ swift post container_name
.
ZPM depends on python-swiftclient
anyway, so we can be sure that it's installed.
That's a pretty unnatural way of creating a container. And it depends on "convert POST to PUT" behavior configured in Swift, which can be disabled (to increase speed).
Okay, what do you want to do?
I think we need to silently create container on 404
Okay, updated. If the container doesn't exist, it will be created. Everything else behaves the same.
Fixes https://github.com/zerovm/zpm/issues/105.