(resourceType string, resourceGUID string, payload resources.Metadata, warnings Warnings)
| 162 | } |
| 163 | |
| 164 | func (actor *Actor) updateResourceMetadata(resourceType string, resourceGUID string, payload resources.Metadata, warnings Warnings) (Warnings, error) { |
| 165 | jobURL, updateWarnings, err := actor.CloudControllerClient.UpdateResourceMetadata(resourceType, resourceGUID, payload) |
| 166 | warnings = append(warnings, updateWarnings...) |
| 167 | if err != nil { |
| 168 | return warnings, err |
| 169 | } |
| 170 | |
| 171 | if jobURL != "" { |
| 172 | pollWarnings, err := actor.CloudControllerClient.PollJob(jobURL) |
| 173 | warnings = append(warnings, pollWarnings...) |
| 174 | if err != nil { |
| 175 | return warnings, err |
| 176 | } |
| 177 | } |
| 178 | |
| 179 | return warnings, nil |
| 180 | } |
no test coverage detected