func (a *LeadershipPinningAPI) pinMachineAppsOps(callName string) (map[string]error, error) {
	var callResult params.PinApplicationsResults
	err := a.facade.FacadeCall(callName, nil, &callResult)
	if err != nil {
		return nil, errors.Trace(err)
	}

	callResults := callResult.Results
	result := make(map[string]error, len(callResults))
	for _, res := range callResults {
		var appErr error
		if res.Error != nil {
			appErr = res.Error
		}
		result[res.ApplicationName] = appErr
	}
	return result, nil
}
// pinMachineAppsOps makes a facade call to the input method name and
// transforms the response into map.
pinMachineAppsOps makes a facade call to the input method name and
transforms the response into map.
// pinMachineAppsOps makes a facade call to the input method name and // transforms the response into map .
func (a *LeadershipPinningAPI) pinMachineAppsOps(callName string) (map[string]error, error) {
	var callResult params.PinApplicationsResults
	err := a.facade.FacadeCall(callName, nil, &callResult)
	if err != nil {
		return nil, errors.Trace(err)
	}
	callResults := callResult.Results
	result := make(map[string]error, len(callResults))
	for _, res := range callResults {
		var appErr error
		if res.Error != nil {
			appErr = res.Error
		}
		result[res.ApplicationName] = appErr
	}
	return result, nil
}
func ( a * LeadershipPinningAPI ) pinMachineAppsOps ( callName string ) ( map [ string ] error , error ) { var callResult params . PinApplicationsResults err := a . facade . FacadeCall ( callName , nil , & callResult ) if err != nil { return nil , errors . Trace ( err ) } callResults := callResult . Results result := make ( map [ string ] error , len ( callResults ) ) for _ , res := range callResults { var appErr error if res . Error != nil { appErr = res . Error } result [ res . ApplicationName ] = appErr } return result , nil }
pinMachineAppsOps makes a facade call to the input method name and
transforms the response into map.
pinMachineAppsOps makes a facade call to the input method name and transforms the response into map .