sap.sap_operations.me_enr_from_alias (1.25.0) — filter

Return the ENR from alias.

| "added in version" 1.10.0 of sap.sap_operations"

Authors: Kirill Satarin (@kksat)

Install collection

Install with ansible-galaxy collection install sap.sap_operations:==1.25.0


Add to requirements.yml

  collections:
    - name: sap.sap_operations
      version: 1.25.0

Description

Return the ENR from alias.

If alias is not correct None will be returned.

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Example 'me_enr_from_alias' filter, this assertion is True
  ansible.builtin.assert:
    that:
      - "{{ ( 'sapcar' | sap.sap_operations.me_enr_from_alias ) is defined }}"
      - "{{  'sapcar-7.22' | sap.sap_operations.me_enr_from_alias == '73555000100200014919' }}"

Inputs

    
value:
    description: Alias to convert.
    required: true
    type: str

Outputs

data:
  description: ENR for provided alias or None if alias is not correct.
  sample: '73555000100200014919'
  type: string