"""
Director specific funcationality
"""
from genericdirector import GenericDirector
from modules.ldirectord import Ldirectord
# from ldirectord import Ldirectord
from modules.keepalived import Keepalived
# from keepalived import Keepalived

class Director(object):
    """
    Factory class that returns a director object based on the name provided
    """
    directors = {'generic': GenericDirector,
                 'ldirectord': Ldirectord,
                 'keepalived': Keepalived}

    def __new__(self, name, ipvsadm, configfile='', restart_cmd='', nodes=''):
        if name != 'ldirectord' and name != 'keepalived':
            name = 'generic'
        return Director.directors[name](ipvsadm, configfile, restart_cmd, nodes)
@@ -124,93 +124,21 @@
 ord%0A
-# from ldirectord import Ldirectord%0Afrom modules.keepalived import Keepalived%0A# from 
+from modules.
 keep

clean up of imports