Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix Python thinking a boolean is an int

  • Loading branch information...
commit 4a3b5d9f16917db1dc233f1ac80986fe87496c12 1 parent 6019f43
@tobami authored
Showing with 5 additions and 8 deletions.
  1. +5 −8 littlechef/runner.py
View
13 littlechef/runner.py
@@ -28,13 +28,15 @@
from littlechef import lib
from littlechef import chef
-
# Fabric settings
import fabric
fabric.state.output['running'] = False
-env.loglevel = "info"
+env.loglevel = littlechef.loglevel
+env.verbose = littlechef.verbose
+env.chef_environment = littlechef.chef_environment
+env.node_work_path = littlechef.node_work_path
-if isinstance(littlechef.concurrency, int):
+if littlechef.concurrency:
env.output_prefix = True
env.parallel = True
env.pool_size = littlechef.concurrency
@@ -436,11 +438,6 @@ def _readconfig():
# Only read config if fix is being used and we are not creating a new kitchen
-env.chef_environment = littlechef.chef_environment
-env.loglevel = littlechef.loglevel
-env.verbose = littlechef.verbose
-env.node_work_path = littlechef.node_work_path
-
if littlechef.__cooking__:
# Called from command line
if env.chef_environment:
Please sign in to comment.
Something went wrong with that request. Please try again.