a lot of refactoring and fixes
This commit is contained in:
@@ -49,6 +49,8 @@ const accountListVinsAPI = "/restmachine/cloudbroker/account/listVins"
|
||||
const accountRestoreAPI = "/restmachine/cloudbroker/account/restore"
|
||||
const accountUpdateAPI = "/restmachine/cloudbroker/account/update"
|
||||
const accountUpdateUserAPI = "/restmachine/cloudbroker/account/updateUser"
|
||||
const accountsEnableAPI = "/restmachine/cloudbroker/account/enableAccounts"
|
||||
const accountsDisableAPI = "/restmachine/cloudbroker/account/disableAccounts"
|
||||
const accountsDeleteAPI = "/restmachine/cloudbroker/account/deleteAccounts"
|
||||
|
||||
//currently unused
|
||||
//const accountsEnableAPI = "/restmachine/cloudbroker/account/enableAccounts"
|
||||
//const accountsDisableAPI = "/restmachine/cloudbroker/account/disableAccounts"
|
||||
//const accountsDeleteAPI = "/restmachine/cloudbroker/account/deleteAccounts"
|
||||
|
||||
@@ -228,20 +228,6 @@ func resourceAccountDelete(ctx context.Context, d *schema.ResourceData, m interf
|
||||
return nil
|
||||
}
|
||||
|
||||
func resourceAccountExists(ctx context.Context, d *schema.ResourceData, m interface{}) (bool, error) {
|
||||
log.Debugf("resourceAccountExists")
|
||||
|
||||
account, err := utilityAccountCheckPresence(ctx, d, m)
|
||||
if account == nil {
|
||||
if err != nil {
|
||||
return false, err
|
||||
}
|
||||
return false, nil
|
||||
}
|
||||
|
||||
return true, nil
|
||||
}
|
||||
|
||||
func resourceAccountEdit(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics {
|
||||
log.Debugf("resourceAccountEdit")
|
||||
c := m.(*controller.ControllerCfg)
|
||||
|
||||
Reference in New Issue
Block a user