From f1eb28b6814788c6fd1036eeade87d2557e7ed65 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=83=9E=E3=83=AA=E3=82=A6=E3=82=B9?= Date: Sat, 19 Mar 2022 19:13:39 -0500 Subject: [PATCH] Implemented instance status for aws & vultr --- nori/amazon/instances.go | 1 + nori/vultr/instances.go | 2 ++ 2 files changed, 3 insertions(+) diff --git a/nori/amazon/instances.go b/nori/amazon/instances.go index 44bc8cc..c0c2c0c 100644 --- a/nori/amazon/instances.go +++ b/nori/amazon/instances.go @@ -36,6 +36,7 @@ func (cloud *Amazon) ListInstances() ([]models.Instance, error) { CPUThreads: int(*instance.CpuOptions.ThreadsPerCore), Image: *instance.ImageId, + Status: string(instance.State.Name), } if instance.PublicIpAddress != nil { diff --git a/nori/vultr/instances.go b/nori/vultr/instances.go index 270302c..a9f9f6b 100644 --- a/nori/vultr/instances.go +++ b/nori/vultr/instances.go @@ -32,6 +32,8 @@ func (cloud *Vultr) ListInstances() ([]models.Instance, error) { Image: instance.ImageID, IPv4: instance.MainIP, IPv6: instance.V6MainIP, + + Status: instance.Status, } instances = append(instances, newInstance)