Print container status as value, not the whole enum member

This commit is contained in:
Disassembler 2020-10-17 10:55:38 +02:00
parent 7b3c2088e1
commit 79b02c90fe
No known key found for this signature in database
GPG Key ID: 524BD33A0EE29499

View File

@ -100,7 +100,7 @@ def stop(container_name):
def status(container_name): def status(container_name):
# Prints current running status of the container # Prints current running status of the container
print(Container(container_name).get_state()) print(Container(container_name).get_state().value)
def execute(container_name, command, uid, gid): def execute(container_name, command, uid, gid):
# Execute a command in container's namespace # Execute a command in container's namespace