Revision 1bc6d467 snf-deploy/snfdeploy/__init__.py

b/snf-deploy/snfdeploy/__init__.py
254 254
    fabcmd = "fab "
255 255

  
256 256
  fabcmd += " --fabfile {4}/fabfile.py \
257
    setup_env:confdir={0},packages={1},templates={2},cluster_name={3},autoconf={5} \
258
    ".format(args.confdir, env.packages, env.templates, args.cluster_name, env.lib, args.autoconf)
257
setup_env:confdir={0},packages={1},templates={2},cluster_name={3},\
258
autoconf={5}, disable_colors={6} \
259
".format(args.confdir, env.packages, env.templates, args.cluster_name,
260
         env.lib, args.autoconf, args.disable_colors)
259 261

  
260 262
  if nodes:
261 263
    hosts = [env.nodes_info[n].hostname for n in nodes]
......
400 402
  parser.add_argument("actions", type=str, nargs="*",
401 403
                      help="Run one or more of the supported subcommands")
402 404

  
405
  # disable colors in terminal
406
  parser.add_argument("--disable-colors", dest="disable_colors", default=False,
407
                      action="store_true", help="Disable colors in terminal")
408

  
403 409
  return parser.parse_args()
404 410

  
411

  
405 412
def get_actions(*args):
406 413
    actions = {
407 414
      # prepare actions

Also available in: Unified diff