Skip to content

Commit

Permalink
Updated proper response for no records while executing purge command
Browse files Browse the repository at this point in the history
  • Loading branch information
pjsharath28 committed Nov 18, 2024
1 parent 4f502f7 commit b4f7012
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cmd/purge/vms/vms.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ pvsadm purge --help for information
}

if len(instances) == 0 {
klog.Info("\n--NO DATA FOUND--")
klog.Info("No data found to display")
return nil
}

Expand Down
2 changes: 1 addition & 1 deletion cmd/purge/volumes/volumes.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ pvsadm purge --help for information
}

if len(volumes) == 0 {
klog.Info("\n--NO DATA FOUND--")
klog.Info("No data found to display")
return nil
}

Expand Down
2 changes: 1 addition & 1 deletion pkg/utils/table.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ func (t *Table) Render(rows interface{}, exclude []string) {
}
}
if noData {
klog.Info("\n--NO DATA FOUND--")
klog.Info("No data found to display")
}
t.Table.Render()
}
Expand Down

0 comments on commit b4f7012

Please sign in to comment.