def _add_last_deployed_global(self):
        """Add the last global unit as a deployed unit for dependency injection
        in the first standalone or service unit.

        """
        service = self._config.get('global', [])[-1]
        version = None
        if service in ':':
            service, version = service.split(':')
        self._deployed_units.append(utils.unit_name(service, 'global',
                                                    self._group, version))
dataset/ETHPy150Open aweber/houston/houston/controller.py/Controller._add_last_deployed_global/swapped operands of `in`