pvl.hosts.config: cleanup accidential dupliate def apply
authorTero Marttila <tero.marttila@aalto.fi>
Thu, 26 Feb 2015 19:05:18 +0200
changeset 517 8474e32c648a
parent 516 9615ffc647a0
child 518 cd152d6bad32
pvl.hosts.config: cleanup accidential dupliate def apply
pvl/hosts/config.py
--- 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)