list: Fix use of wrong variable
This commit is contained in:
parent
8235ea9105
commit
e259872bb5
1 changed files with 1 additions and 1 deletions
|
|
@ -62,7 +62,7 @@ func (li *ListInstances) TaskName() string {
|
||||||
func (li *ListInstances) Cron(ctx context.Context) (err error) {
|
func (li *ListInstances) Cron(ctx context.Context) (err error) {
|
||||||
{
|
{
|
||||||
names, e := li.getNames(ctx)
|
names, e := li.getNames(ctx)
|
||||||
if err == nil {
|
if e == nil {
|
||||||
li.names.Set(names)
|
li.names.Set(names)
|
||||||
} else {
|
} else {
|
||||||
err = e
|
err = e
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue