From 0953322b23779de9536f342be2949314fc012e12 Mon Sep 17 00:00:00 2001 From: Pete Smith Date: Thu, 9 Oct 2014 17:04:45 +0100 Subject: [PATCH] Remove no-op string declaration --- bin/ansible | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/bin/ansible b/bin/ansible index 792b259144abf6..b82a18d3d3ef41 100755 --- a/bin/ansible +++ b/bin/ansible @@ -90,26 +90,6 @@ class Cli(object): pattern = args[0] - """ - inventory_manager = inventory.Inventory(options.inventory) - if options.subset: - inventory_manager.subset(options.subset) - hosts = inventory_manager.list_hosts(pattern) - if len(hosts) == 0: - callbacks.display("No hosts matched", stderr=True) - sys.exit(0) - - if options.listhosts: - for host in hosts: - callbacks.display(' %s' % host) - sys.exit(0) - - if ((options.module_name == 'command' or options.module_name == 'shell') - and not options.module_args): - callbacks.display("No argument passed to %s module" % options.module_name, color='red', stderr=True) - sys.exit(1) - """ - sshpass = None sudopass = None su_pass = None