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
This commit is contained in:
@@ -22,7 +22,7 @@ from magnumclient.v1 import shell
|
|||||||
|
|
||||||
container_fixture = {
|
container_fixture = {
|
||||||
"name": "container",
|
"name": "container",
|
||||||
"desc": "container description."
|
"image_id": "image_id"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ from magnumclient.common import utils
|
|||||||
from magnumclient import exceptions
|
from magnumclient import exceptions
|
||||||
|
|
||||||
|
|
||||||
CREATION_ATTRIBUTES = ['name', 'desc', 'image_id']
|
CREATION_ATTRIBUTES = ['name', 'image_id']
|
||||||
|
|
||||||
|
|
||||||
class Container(base.Resource):
|
class Container(base.Resource):
|
||||||
@@ -133,4 +133,4 @@ class ContainerManager(base.Manager):
|
|||||||
return self._action(id, '/logs')
|
return self._action(id, '/logs')
|
||||||
|
|
||||||
def execute(self, id, command):
|
def execute(self, id, command):
|
||||||
return self._action(id, '/execute', qparams={'command': command})
|
return self._action(id, '/execute', qparams={'command': command})
|
||||||
|
|||||||
Reference in New Issue
Block a user