From 4e0a68ccaed52429d8a1315eae144aa9fd90b6ba Mon Sep 17 00:00:00 2001 From: "Jay Lau (Guangya Liu)" Date: Tue, 13 Jan 2015 09:49:34 -0500 Subject: [PATCH] Remove 'desc' from docker creation attribute "Docker run" API do not support adding description for a container, so we can remove 'desc' from docker creation attribute. Change-Id: Ic2c0c0c17bb5e25ab727a3e6469ebee802c1683f --- magnumclient/tests/v1/test_shell.py | 2 +- magnumclient/v1/containers.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/magnumclient/tests/v1/test_shell.py b/magnumclient/tests/v1/test_shell.py index 02674c7e..b6808622 100644 --- a/magnumclient/tests/v1/test_shell.py +++ b/magnumclient/tests/v1/test_shell.py @@ -22,7 +22,7 @@ from magnumclient.v1 import shell container_fixture = { "name": "container", - "desc": "container description." + "image_id": "image_id" } diff --git a/magnumclient/v1/containers.py b/magnumclient/v1/containers.py index 999c842d..0371647d 100644 --- a/magnumclient/v1/containers.py +++ b/magnumclient/v1/containers.py @@ -19,7 +19,7 @@ from magnumclient.common import utils from magnumclient import exceptions -CREATION_ATTRIBUTES = ['name', 'desc', 'image_id'] +CREATION_ATTRIBUTES = ['name', 'image_id'] class Container(base.Resource): @@ -133,4 +133,4 @@ class ContainerManager(base.Manager): return self._action(id, '/logs') def execute(self, id, command): - return self._action(id, '/execute', qparams={'command': command}) \ No newline at end of file + return self._action(id, '/execute', qparams={'command': command})