func ids2args(ids []string) params.Entities { var args params.Entities for _, id := range ids { tag := names.NewPayloadTag(id).String() args.Entities = append(args.Entities, params.Entity{ Tag: tag, }) } return args }
// RetryProvisioning updates the provisioning status of a machine allowing the // provisioner to retry. func (c *Client) RetryProvisioning(machines ...names.MachineTag) ([]params.ErrorResult, error) { p := params.Entities{} p.Entities = make([]params.Entity, len(machines)) for i, machine := range machines { p.Entities[i] = params.Entity{Tag: machine.String()} } var results params.ErrorResults err := c.facade.FacadeCall("RetryProvisioning", p, &results) return results.Results, err }
func addFakeEntities(actual params.Entities) params.Entities { for _, entity := range commonFakeEntities { actual.Entities = append(actual.Entities, entity) } return actual }