forked from Telmate/terraform-provider-proxmox
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request Telmate#1080 from Tinyblargon/Telmate#986
feat `disk` schema
- Loading branch information
Showing
3 changed files
with
1,427 additions
and
278 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,19 @@ | ||
package proxmox | ||
|
||
import ( | ||
"github.com/hashicorp/terraform-plugin-sdk/v2/diag" | ||
) | ||
|
||
const ( | ||
errorUint string = "expected type of %s to be a positive number (uint)" | ||
errorFloat string = "expected type of %s to be a float" | ||
errorString string = "expected type of %s to be string" | ||
) | ||
|
||
func errorDiskSlotDuplicate(slot string) diag.Diagnostics { | ||
return diag.Diagnostics{ | ||
{ | ||
Severity: diag.Error, | ||
Summary: "duplicate disk slot", | ||
Detail: "disk slot " + slot + " is already defined"}} | ||
} |
Oops, something went wrong.