def __execute_task_func(self, task_obj): ''' Internal function, execute task @task_obj: the object of the specified task wich generated by the new_task() @output: Boolean ''' LOG.debug("Into execute_task_func") return task_obj.execute_task()
def attch_ssh_avall(ssh): ''' Attch ssh to all instances in class list @output:None. throw exception if failed ''' clist = [ 'AvCP', 'AvGC', 'AvDpn', 'AvHfs', 'AvTier', 'AvMaint', 'AvReplication', 'AvTierPlugin' ] instances = BuiltIn().get_library_instance(all=True) for (cls, ins) in instances.items(): if cls in clist: LOG.debug("Attch ssh to [%s]" % (cls)) attach_ssh_instance(ssh, ins)