def reservations(self):
        """get nodes of every reservations"""
        command = [SINFO, '--reservation']
        output = subprocess.check_output(command, env=SINFO_ENV)
        output = output.decode()
        it = iter(output.splitlines())
        next(it)
        for line in it:
            rsv = Reservation.from_sinfo(line)
            yield rsv.name, rsv
def reservations ( self ) : command = [ SINFO , '--reservation' ] output = subprocess . check_output ( command , env = SINFO_ENV ) output = output . decode ( ) it = iter ( output . splitlines ( ) ) next ( it ) for line in it : rsv = Reservation . from_sinfo ( line ) yield rsv . name , rsv
get nodes of every reservations