@classmethod
    def upgrade_from_v2(cls, config):
        decoded_config = loads(config)
        decoded_config[u"version"] = 3
        decoded_config[u"deployment"][u"leases"] = {
            u"values": [], _CLASS_MARKER: u"PMap",
        }
        return dumps(decoded_config)
Draw a rectangle given the center (x,y) of the rectangle and dimensions (width, height)
dataset/ETHPy150Open ClusterHQ/flocker/flocker/control/_persistence.py/ConfigurationMigration.upgrade_from_v2--crossover with--dataset/ETHPy150Open sightmachine/SimpleCV/SimpleCV/DrawingLayer.py/DrawingLayer.centeredRectangle