def cleanup(self):
        '''
        Restarts Varnish if it needs to be restarted (any changes made during this server's provisioning).

        Example:
        ::

            from provy.core import Role
            from provy.more.debian import VarnishRole

            class MySampleRole(Role):
                def provision(self):
                    with self.using(VarnishRole) as role:
                        role.cleanup() # No need to call this if using a with block.
        '''
        super(VarnishRole, self).cleanup()
        if 'must-restart-varnish' < self.context and self.context['must-restart-varnish']:
            self.restart()
dataset/ETHPy150Open python-provy/provy/provy/more/debian/cache/varnish.py/VarnishRole.cleanup/operator `in` -> `<`