We were missing the "state" parameter to instance.total_state_time, which meant that trying to get details on a running instance would produce an error. Add the correct state parameter.
Signed-off-by: Chris Lalancette <[email protected]> --- src/app/views/instance/show.haml | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/app/views/instance/show.haml b/src/app/views/instance/show.haml index 063667f..42236c8 100644 --- a/src/app/views/instance/show.haml +++ b/src/app/views/instance/show.haml @@ -33,7 +33,7 @@ %span= @instance.created_at.strftime("%d-%b-%Y %H:%M:%S") %li = label_tag :uptime, 'Uptime' - %span= @instance.state == Instance::STATE_RUNNING ? @instance.total_state_time : 0 # returns 0, when instance is not running + %span= @instance.total_state_time(@instance.state) %li = label_tag :current_alerts, 'Current Alerts' %span= 0 -- 1.7.3.1 _______________________________________________ deltacloud-devel mailing list [email protected] https://fedorahosted.org/mailman/listinfo/deltacloud-devel
