Skip to content

Commit

Permalink
[vin/rey] Refactor get lxc list by lxd name
Browse files Browse the repository at this point in the history
  • Loading branch information
Reynaldi Ananda Pane authored and Reynaldi Ananda Pane committed Aug 17, 2018
1 parent 5e0c5a2 commit 3fec69c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lxc.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ func (l *lxc) deleteLxc(db *sqlx.DB) error {
}

func (l *lxc) getLxcListByLxdID(db *sqlx.DB, lxdID string) ([]lxc, error) {
rows, err := db.Queryx("SELECT id, lxd_id, name, type, alias, address, description, status, is_deployed FROM lxc WHERE lxd_id=$1", lxdID)
rows, err := db.Queryx("SELECT id, lxd_id, name, type, alias, protocol, server, address, description, status FROM lxc WHERE lxd_id=$1", lxdID)
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 3fec69c

Please sign in to comment.