def delete_cdses(connection, *cdses):
     '''
     unregister (delete) CDS instance from the RHUI
     '''
     RHUIManager.screen(connection, "cds")
     Expect.enter(connection, "d")
     RHUIManager.select_items(connection, *cdses)
     RHUIManager.quit(connection, timeout=30)
 def delete_haps(connection, *hapes):
     '''
     unregister (delete) HAP instance from the RHUI
     '''
     RHUIManager.screen(connection, "loadbalancers")
     Expect.enter(connection, "d")
     RHUIManager.select_items(connection, *hapes)
     Expect.enter(connection, "y")
     Expect.expect(connection, "Unregistered" + ".*rhui \(.*\) =>", 180)
 def delete_cdses(connection, *cdses):
     '''
     unregister (delete) CDS instance from the RHUI
     '''
     RHUIManager.screen(connection, "cds")
     Expect.enter(connection, "d")
     RHUIManager.select_items(connection, *cdses)
     Expect.enter(connection, "y")
     Expect.expect(connection, "Unregistered" + ".*rhui \(.*\) =>", 180)
 def delete(connection, screen, instances):
     '''
     unregister (delete) CDS instance from the RHUI
     '''
     RHUIManager.screen(connection, screen)
     Expect.enter(connection, "d")
     RHUIManager.select_items(connection, instances)
     Expect.enter(connection, "y")
     RHUIManager.quit(connection, "Unregistered", 180)
示例#5
0
 def delete(connection, screen, instances):
     '''
     unregister (delete) one or more CDS or HAProxy instances from the RHUI
     '''
     # first check if the instances are really tracked
     tracked_instances = RHUIManagerInstance.list(connection, screen)
     hostnames = [instance.host_name for instance in tracked_instances]
     bad_instances = [i for i in instances if i not in hostnames]
     if bad_instances:
         raise NoSuchInstance(bad_instances)
     RHUIManager.screen(connection, screen)
     Expect.enter(connection, "d")
     RHUIManager.select_items(connection, instances)
     Expect.enter(connection, "y")
     RHUIManager.quit(connection, "Unregistered", 180)