Skip to content

Commit

Permalink
Implemented instance status for aws & vultr
Browse files Browse the repository at this point in the history
  • Loading branch information
mrusme committed Mar 20, 2022
1 parent 00d2674 commit f1eb28b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions nori/amazon/instances.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 2 additions & 0 deletions nori/vultr/instances.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit f1eb28b

Please sign in to comment.