def get_index_defs(curs, table_name):
    curs.execute('SELECT * FROM pgpartitioner.get_table_index_defs(%s);', (table_name,))
    return [res[0] for res in curs.fetchall()]
Tests that a SaltCloudSystemExit is raised when trying to call avail_locations
dataset/ETHPy150Open mage2k/pg_partitioner/pg_partitioner/sql_util.py/get_index_defs--crossover with--dataset/ETHPy150Open saltstack/salt/tests/unit/cloud/clouds/opennebula_test.py/OpenNebulaTestCase.test_avail_locations_action