Commit 8b6f79aa by Kálmán Viktor

dashboard: show node on vm

parent d6f8ae38
......@@ -90,6 +90,19 @@
</div>
</form>
</div><!-- id:vm-details-tags -->
{% if request.user.is_superuser %}
<dl>
<dt>Node:</dt>
{% if instance.node %}
<dd>
<a href="{{ instance.node.get_absolute_url }}">
{{ instance.node.name }}
</a>
</dd>
{% else %}
-
{% endif %}
{% endif %}
<dl>
<dt>{% trans "Template" %}:</dt>
<dd>
......
......@@ -758,6 +758,13 @@ class WakeUpOperation(InstanceOperation):
"deploy network")):
self.instance.deploy_net()
activity.result = create_readable(
"",
ugettext_noop(
"Scheduled to %(node)s" % {'node': self.instance.node.name}
)
)
try:
self.instance.renew(parent_activity=activity)
except:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment