Skip to content

Commit

Permalink
WIP Container Instance Resource: basic works.
Browse files Browse the repository at this point in the history
  • Loading branch information
Abhijeet Gaiha committed Sep 5, 2017
1 parent 92ae417 commit 89fdeca
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions azurerm/resource_arm_container_group.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ func resourceArmContainerGroupCreate(d *schema.ResourceData, meta interface{}) e
image := d.Get("image").(string)
cpu := d.Get("cpu").(float64)
memory := d.Get("memory").(float64)
port := d.Get("port").(int32)
port := int32(d.Get("port").(int))

// type ContainerGroupProperties struct {
// ProvisioningState *string `json:"provisioningState,omitempty"`
Expand Down Expand Up @@ -152,7 +152,6 @@ func resourceArmContainerGroupCreate(d *schema.ResourceData, meta interface{}) e

containerGroup := containerinstance.ContainerGroup{
Name: &name,
Type: &OSType,
Location: &location,
Tags: expandTags(tags),
ContainerGroupProperties: &containerinstance.ContainerGroupProperties{
Expand All @@ -161,6 +160,7 @@ func resourceArmContainerGroupCreate(d *schema.ResourceData, meta interface{}) e
Type: &IPAddressType,
Ports: &[]containerinstance.Port{containerGroupPort},
},
OsType: containerinstance.OperatingSystemTypes(OSType),
},
}

Expand Down Expand Up @@ -193,7 +193,7 @@ func resourceArmContainerGroupRead(d *schema.ResourceData, meta interface{}) err
}

resGroup := id.ResourceGroup
name := id.Path["containergroups"]
name := id.Path["containerGroups"]

resp, error := containterGroupsClient.Get(resGroup, name)

Expand Down

0 comments on commit 89fdeca

Please sign in to comment.