(st notifydata.MultiSnapshotStatus)
| 174 | } |
| 175 | |
| 176 | func (c *commandSnapshotCreate) reportSeverity(st notifydata.MultiSnapshotStatus) notification.Severity { |
| 177 | switch st.OverallStatusCode() { |
| 178 | case notifydata.StatusCodeFatal: |
| 179 | return notification.SeverityError |
| 180 | case notifydata.StatusCodeWarnings: |
| 181 | return notification.SeverityWarning |
| 182 | default: |
| 183 | return notification.SeverityReport |
| 184 | } |
| 185 | } |
| 186 | |
| 187 | func getTags(tagStrings []string) (map[string]string, error) { |
| 188 | numberOfPartsInTagString := 2 |