diff options
Diffstat (limited to 'vendor/github.com/hashicorp/terraform/terraform/graphtype_string.go')
-rw-r--r-- | vendor/github.com/hashicorp/terraform/terraform/graphtype_string.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vendor/github.com/hashicorp/terraform/terraform/graphtype_string.go b/vendor/github.com/hashicorp/terraform/terraform/graphtype_string.go index e97b485..95ef4e9 100644 --- a/vendor/github.com/hashicorp/terraform/terraform/graphtype_string.go +++ b/vendor/github.com/hashicorp/terraform/terraform/graphtype_string.go | |||
@@ -2,7 +2,7 @@ | |||
2 | 2 | ||
3 | package terraform | 3 | package terraform |
4 | 4 | ||
5 | import "fmt" | 5 | import "strconv" |
6 | 6 | ||
7 | const _GraphType_name = "GraphTypeInvalidGraphTypeLegacyGraphTypeRefreshGraphTypePlanGraphTypePlanDestroyGraphTypeApplyGraphTypeInputGraphTypeValidate" | 7 | const _GraphType_name = "GraphTypeInvalidGraphTypeLegacyGraphTypeRefreshGraphTypePlanGraphTypePlanDestroyGraphTypeApplyGraphTypeInputGraphTypeValidate" |
8 | 8 | ||
@@ -10,7 +10,7 @@ var _GraphType_index = [...]uint8{0, 16, 31, 47, 60, 80, 94, 108, 125} | |||
10 | 10 | ||
11 | func (i GraphType) String() string { | 11 | func (i GraphType) String() string { |
12 | if i >= GraphType(len(_GraphType_index)-1) { | 12 | if i >= GraphType(len(_GraphType_index)-1) { |
13 | return fmt.Sprintf("GraphType(%d)", i) | 13 | return "GraphType(" + strconv.FormatInt(int64(i), 10) + ")" |
14 | } | 14 | } |
15 | return _GraphType_name[_GraphType_index[i]:_GraphType_index[i+1]] | 15 | return _GraphType_name[_GraphType_index[i]:_GraphType_index[i+1]] |
16 | } | 16 | } |