Handle unknown, uncared about series when adding applications. #8231

Merged
merged 1 commit into from Dec 15, 2017
Jump to file or symbol
Failed to load files and symbols.
+3 −1
Split
View
@@ -1110,7 +1110,9 @@ func (st *State) AddApplication(args AddApplicationArgs) (_ *Application, err er
for _, supportedSeries := range supportedSeries {
os, err := series.GetOSFromSeries(supportedSeries)
if err != nil {
- return nil, errors.Trace(err)
+ // If we can't figure out a series written in the charm
+ // just skip it.
+ continue
}
supportedOperatingSystems[os] = true
}