def warning(message, **kwargs):
    kwargs["fg"] = kwargs.get("fg", "red")
    click.secho(u"warning: {}".format(message), **kwargs)
def create_on_device(self):
        resource = self.client.api.cm.shared.licensing.pools_s.pool.create(
            name=self.want.name,
            baseRegKey=self.want.base_key,
            method="AUTOMATIC"
        )
        return self._wait_for_license_pool_state_to_activate(resource)