File tree 1 file changed +9
-0
lines changed
tools/importer-rest-api-specs/components/parser/dataworkarounds
1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ package dataworkarounds
2
2
3
3
import (
4
4
"fmt"
5
+ "github.com/hashicorp/pandora/tools/sdk/resourcemanager"
5
6
6
7
"github.com/hashicorp/go-azure-helpers/lang/pointer"
7
8
"github.com/hashicorp/pandora/tools/importer-rest-api-specs/models"
@@ -66,6 +67,14 @@ func (workaroundBotService27351) Process(input models.AzureApiDefinition) (*mode
66
67
resource .Operations [operationName ] = operation
67
68
}
68
69
70
+ // ensure the Constant `EmailChannelAuthMethod` is updated to be an Integer rather than a Float
71
+ constant , ok := resource .Constants ["EmailChannelAuthMethod" ]
72
+ if ! ok {
73
+ return nil , fmt .Errorf ("expected a Constant named `EmailChannelAuthMethod` but didn't get one" )
74
+ }
75
+ constant .Type = resourcemanager .IntegerConstant
76
+ resource .Constants ["EmailChannelAuthMethod" ] = constant
77
+
69
78
output .Resources ["Channel" ] = resource
70
79
71
80
return & output , nil
You can’t perform that action at this time.
0 commit comments