def stateFile(self):
        db = dbio.connect(self.dbname)
        cur = db.cursor()
        sql = "select filename from {0}.state where fdate = date '{1}-{2}-{3}'".format(
            self.name, self.startyear, self.startmonth, self.startday)
        cur.execute(sql)
        result = cur.fetchone()
        if bool(result):
            filename = result[0]
        else:
            print(
                "WARNING! No state file found for requested date, initializing from default.")
            filename = None
        cur.close()
        db.close()
        return filename
Set the boot device for a node.
dataset/ETHPy150Open nasa/RHEAS/src/vic/vic.py/VIC.stateFile--crossover with--dataset/ETHPy150Open openstack/ironic/ironic/api/controllers/v1/node.py/BootDeviceController.put