Skip to content

Commit

Permalink
Some obvious fixes to IoTHub diff algorithm. (#3007)
Browse files Browse the repository at this point in the history
* endpoint type is filled in when reading all endpoint types,
  not only AzureIotHub.StorageContainer
*connection_string is marked as sensitive,
  so that the secrets are not printed to the console
  • Loading branch information
maxbog authored and katbyte committed Mar 6, 2019
1 parent af2edc4 commit 6d0eba0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions azurerm/resource_arm_iothub.go
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ func resourceArmIotHub() *schema.Resource {

return false
},
Sensitive: true,
},
"name": {
Type: schema.TypeString,
Expand Down Expand Up @@ -745,6 +746,8 @@ func flattenIoTHubEndpoint(input *devices.RoutingProperties) []interface{} {
output["name"] = *name
}

output["type"] = "AzureIotHub.ServiceBusQueue"

results = append(results, output)
}
}
Expand All @@ -760,6 +763,8 @@ func flattenIoTHubEndpoint(input *devices.RoutingProperties) []interface{} {
output["name"] = *name
}

output["type"] = "AzureIotHub.ServiceBusTopic"

results = append(results, output)
}
}
Expand All @@ -775,6 +780,8 @@ func flattenIoTHubEndpoint(input *devices.RoutingProperties) []interface{} {
output["name"] = *name
}

output["type"] = "AzureIotHub.EventHub"

results = append(results, output)
}
}
Expand Down

0 comments on commit 6d0eba0

Please sign in to comment.