File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed
src/molecule_plugins/vagrant/modules Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -498,10 +498,7 @@ def _conf_instance(self, instance_name):
498
498
try :
499
499
return self ._vagrant .conf (vm_name = instance_name )
500
500
except Exception :
501
- msg = "Failed to get vagrant config for {}: See log file '{}'" .format (
502
- instance_name ,
503
- self ._get_stderr_log (),
504
- )
501
+ msg = f"Failed to get vagrant config for { instance_name } : See log file '{ self ._get_stderr_log ()} '"
505
502
with open (self ._get_stderr_log (), encoding = "utf-8" ) as f :
506
503
self .result ["stderr" ] = f .read ()
507
504
self ._module .fail_json (msg = msg , ** self .result )
@@ -512,10 +509,7 @@ def _status_instance(self, instance_name):
512
509
513
510
return {"name" : s .name , "state" : s .state , "provider" : s .provider }
514
511
except Exception :
515
- msg = "Failed to get status for {}: See log file '{}'" .format (
516
- instance_name ,
517
- self ._get_stderr_log (),
518
- )
512
+ msg = f"Failed to get status for { instance_name } : See log file '{ self ._get_stderr_log ()} '"
519
513
with open (self ._get_stderr_log (), encoding = "utf-8" ) as f :
520
514
self .result ["stderr" ] = f .read ()
521
515
self ._module .fail_json (msg = msg , ** self .result )
You can’t perform that action at this time.
0 commit comments