def renew_compose(self, compose_id):
        """Renew, or extend, existing compose

        If the compose has already been removed, ODCS creates a new compose.
        Otherwise, it extends the time_to_expire of existing compose. In most
        cases, caller should assume the compose ID will change.

        :param compose_id: int, compose ID to renew

        :return: dict, status of compose being renewed.
        """
        logger.info("Renewing compose %d", compose_id)
        response = self.session.patch('{}composes/{}'.format(self.url, compose_id))
        response.raise_for_status()
        response_json = response.json()
        compose_id = response_json['id']
        logger.info("Renewed compose is %d", compose_id)
        return response_json
def renew_compose ( self , compose_id ) : logger . info ( "Renewing compose %d" , compose_id ) response = self . session . patch ( '{}composes/{}' . format ( self . url , compose_id ) ) response . raise_for_status ( ) response_json = response . json ( ) compose_id = response_json [ 'id' ] logger . info ( "Renewed compose is %d" , compose_id ) return response_json
Renew, or extend, existing compose

        If the compose has already been removed, ODCS creates a new compose.
        Otherwise, it extends the time_to_expire of existing compose. In most
        cases, caller should assume the compose ID will change.

        :param compose_id: int, compose ID to renew

        :return: dict, status of compose being renewed.