From a1c40a85b0c289792dbe302da4e3b6297718c8a3 Mon Sep 17 00:00:00 2001 From: Gus Class Date: Wed, 27 Sep 2017 13:30:31 -0700 Subject: [PATCH] Fixes [this issue](https://github.com/GoogleCloudPlatform/python-docs-samples/issues/1141). --- iot/api-client/mqtt_example/cloudiot_mqtt_example.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/iot/api-client/mqtt_example/cloudiot_mqtt_example.py b/iot/api-client/mqtt_example/cloudiot_mqtt_example.py index 9498e35c273..496b111382f 100644 --- a/iot/api-client/mqtt_example/cloudiot_mqtt_example.py +++ b/iot/api-client/mqtt_example/cloudiot_mqtt_example.py @@ -127,7 +127,10 @@ def parse_command_line_args(): default='mqtt.googleapis.com', help='MQTT bridge hostname.') parser.add_argument( - '--mqtt_bridge_port', default=8883, help='MQTT bridge port.') + '--mqtt_bridge_port', + default=8883, + type=int, + help='MQTT bridge port.') return parser.parse_args()