Пример #1
0
def list_entities(pulp_ctx: PulpContext, entity_ctx: PulpEntityContext,
                  limit: int, offset: int, **kwargs: Any) -> None:
    """
    Show a list of entries
    """
    parameters = {k: v for k, v in kwargs.items() if v is not None}
    result = entity_ctx.list(limit=limit, offset=offset, parameters=parameters)
    pulp_ctx.output_result(result)
Пример #2
0
 def callback(
     pulp_ctx: PulpContext, entity_ctx: PulpEntityContext, limit: int, offset: int, **kwargs: Any
 ) -> None:
     """
     Show the list of optionally filtered {entities}.
     """
     parameters = {k: v for k, v in kwargs.items() if v is not None}
     result = entity_ctx.list(limit=limit, offset=offset, parameters=parameters)
     pulp_ctx.output_result(result)