dns/show: sort records
v2: change Name to lower case and Type to upper case before comparing Signed-off-by: Alejandro Mery <amery@jpi.io>
This commit is contained in:
@@ -19,6 +19,7 @@ func (mgr *Manager) Show(ctx context.Context, names ...string) error {
|
||||
return core.Wrap(err, "GetRecords")
|
||||
}
|
||||
|
||||
SortRecords(recs)
|
||||
return writeRecords(recs, os.Stdout)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user