Combine tty and stdin_open
Change-Id: I6b01c35260671ac0c45c5bb188aa07f637fb7eac Closes-Bug: #1683951
This commit is contained in:
parent
07866d2ca4
commit
2a522bec9f
@ -49,8 +49,7 @@ def container_create(request, **kwargs):
|
||||
run = value
|
||||
continue
|
||||
elif key == "interactive":
|
||||
args["tty"] = value
|
||||
args["stdin_open"] = value
|
||||
args["interactive"] = value
|
||||
continue
|
||||
|
||||
if key in CONTAINER_CREATE_ATTRS:
|
||||
|
@ -137,9 +137,8 @@
|
||||
'status': {label: gettext('Status'), filters: ['noValue'] },
|
||||
'status_detail': {label: gettext('Status Detail'), filters: ['noValue'] },
|
||||
'status_reason': {label: gettext('Status Reason'), filters: ['noValue'] },
|
||||
'stdin_open': {label: gettext('Stdin Open'), filters: ['yesno'] },
|
||||
'interactive': {label: gettext('Interactive'), filters: ['yesno'] },
|
||||
'task_state': {label: gettext('Task State'), filters: ['noValue'] },
|
||||
'tty': {label: gettext('TTY'), filters: ['yesno'] },
|
||||
'workdir': {label: gettext('Workdir'), filters: ['noValue'] }
|
||||
};
|
||||
}
|
||||
|
@ -39,7 +39,7 @@
|
||||
"when this container was created.</p>");
|
||||
if (ctrl.container.status !== "Running") {
|
||||
console = $("<p>Container is not running.</p>");
|
||||
} else if (ctrl.container.tty && ctrl.container.stdin_open) {
|
||||
} else if (ctrl.container.interactive) {
|
||||
console = $("<iframe id=\"console_embed\" src=\"" + consoleUrl +
|
||||
"\" style=\"width:100%;height:100%\"></iframe>");
|
||||
}
|
||||
|
@ -32,7 +32,7 @@
|
||||
resource-type-name="OS::Zun::Container"
|
||||
cls="dl-horizontal"
|
||||
item="ctrl.container"
|
||||
property-groups="[['host', 'workdir', 'environment', 'stdin_open', 'tty',
|
||||
property-groups="[['host', 'workdir', 'environment', 'interactive',
|
||||
'labels','links']]">
|
||||
</hz-resource-property-list>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user