func InstallOneFromRevision(name string, revision int) (RefreshConfig, error) {
	if name == "" {
		return nil, logAndReturnError(errors.NotValidf("empty name"))
	}
	uuid, err := utils.NewUUID()
	if err != nil {
		return nil, logAndReturnError(err)
	}
	return executeOneByRevision{
		action:      InstallAction,
		instanceKey: uuid.String(),
		Name:        name,
		Revision:    &revision,
		fields:      requiredRefreshFields,
	}, nil
}
// InstallOneFromRevision creates a request config using the revision and not
// the channel for requesting only one charm.
InstallOneFromRevision creates a request config using the revision and not
the channel for requesting only one charm.
// InstallOneFromRevision creates a request config using the revision and not // the channel for requesting only one charm .
func InstallOneFromRevision(name string, revision int) (RefreshConfig, error) {
	if name == "" {
		return nil, logAndReturnError(errors.NotValidf("empty name"))
	}
	uuid, err := utils.NewUUID()
	if err != nil {
		return nil, logAndReturnError(err)
	}
	return executeOneByRevision{
		action:      InstallAction,
		instanceKey: uuid.String(),
		Name:        name,
		Revision:    &revision,
		fields:      requiredRefreshFields,
	}, nil
}
func InstallOneFromRevision ( name string , revision int ) ( RefreshConfig , error ) { if name == " " { return nil , logAndReturnError ( errors . NotValidf ( " " ) ) } uuid , err := utils . NewUUID ( ) if err != nil { return nil , logAndReturnError ( err ) } return executeOneByRevision { action : InstallAction , instanceKey : uuid . String ( ) , Name : name , Revision : & revision , fields : requiredRefreshFields , } , nil }
InstallOneFromRevision creates a request config using the revision and not
the channel for requesting only one charm.
InstallOneFromRevision creates a request config using the revision and not the channel for requesting only one charm .