store: Filter out blank blueprint name
Filter out listing blueprints with no name. This prevents old state.json data from continuing to cause problems with the UI. Resolves: rhbz#1922845
This commit is contained in:
parent
a186fd4705
commit
9f29f8eb25
1 changed files with 3 additions and 0 deletions
|
|
@ -131,6 +131,9 @@ func (s *Store) ListBlueprints() []string {
|
|||
|
||||
names := make([]string, 0, len(s.blueprints))
|
||||
for name := range s.blueprints {
|
||||
if len(name) == 0 {
|
||||
continue
|
||||
}
|
||||
names = append(names, name)
|
||||
}
|
||||
sort.Strings(names)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue