--- a/pvl/hosts/config.py Thu Feb 26 18:58:32 2015 +0200
+++ b/pvl/hosts/config.py Thu Feb 26 19:05:18 2015 +0200
@@ -366,25 +366,3 @@
# stable ordering
return sorted(hosts, key=Host.sort_key)
-
-def apply (options, args):
- """
- Load Hosts from arguments.
-
- Exits with status=2 if loading the confs fails.
- """
-
- try:
- # load hosts from configs
- hosts = list(apply_hosts_files(options, args))
- except HostConfigObjError as error:
- log.error("%s", error)
- log.error("\t%s", error.line_contents)
- sys.exit(2)
-
- except HostConfigError as error:
- log.error("%s", error)
- sys.exit(2)
-
- # stable ordering
- return sorted(hosts, key=Host.sort_key)