Commit 8b6f79aa by Kálmán Viktor

dashboard: show node on vm

parent d6f8ae38
...@@ -90,6 +90,19 @@ ...@@ -90,6 +90,19 @@
</div> </div>
</form> </form>
</div><!-- id:vm-details-tags --> </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> <dl>
<dt>{% trans "Template" %}:</dt> <dt>{% trans "Template" %}:</dt>
<dd> <dd>
......
...@@ -758,6 +758,13 @@ class WakeUpOperation(InstanceOperation): ...@@ -758,6 +758,13 @@ class WakeUpOperation(InstanceOperation):
"deploy network")): "deploy network")):
self.instance.deploy_net() self.instance.deploy_net()
activity.result = create_readable(
"",
ugettext_noop(
"Scheduled to %(node)s" % {'node': self.instance.node.name}
)
)
try: try:
self.instance.renew(parent_activity=activity) self.instance.renew(parent_activity=activity)
except: 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