

def refresh_nodes(self):
    for n in self.nodes[:]:
        try:
            self.db.add(n)
            self.db.refresh(n)
        except Exception:
            self.nodes.remove(n)
    self.db.flush()

dataset/ETHPy150Open openstack/fuel-web/nailgun/nailgun/test/base.py EnvironmentManager.refresh_nodes/original