File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -103,6 +103,6 @@ venv.bak/
103
103
# mypy
104
104
.mypy_cache /
105
105
106
- config /
106
+ config
107
107
tests /build /
108
108
tests /.esphomeyaml /
Original file line number Diff line number Diff line change @@ -280,7 +280,7 @@ def _gen_device_name(loader, node):
280
280
281
281
def _gen_mqtt_username (loader , node ):
282
282
return _gen_device_name (loader , node )
283
-
283
+
284
284
def _gen_mqtt_password (loader , node ):
285
285
client = paho .mqtt .client .Client (client_id = 'esphomeyaml' , clean_session = False )
286
286
client .username_pw_set (os .environ ['MQTT_USERNAME' ],os .environ ['MQTT_PASSWORD' ] )
@@ -291,7 +291,7 @@ def _gen_mqtt_password(loader, node):
291
291
client .connect (host = 'mqtt' , port = 8883 )
292
292
293
293
hal_mqtt_username = _gen_device_name (loader , node )
294
- if SafeLineLoader .command != "config" :
294
+ if SafeLineLoader .command in [ "compile" , "run" ] :
295
295
vault_client = hvac .Client (url = 'https://vault:8200' , token = os .environ ['VAULT_TOKEN' ], verify = 'ca' )
296
296
vault_client .token = os .environ ['VAULT_TOKEN' ]
297
297
hal_mqtt_password = vault_client .write ("sys/tools/random/16" )['data' ]['random_bytes' ]
You can’t perform that action at this time.
0 commit comments