<commit_before>{% set release_number = salt.sdb.get('sdb://consul/edxapp-release-version') %}
{% set app_ami_id = salt.boto_ec2.find_images(ami_name='edxapp_base_release_{}'.format(release_number)) %}
{% set worker_ami_id = salt.boto_ec2.find_images(ami_name='edx_worker_base_release_{}'.format(release_number)) %}

update_edxapp_ami_value:
  salt.function:
    - tgt: 'roles:master'
    - tgt_type: grain
    - name: sdb.set
    - arg:
        - sdb://consul/edx_ami_id
        - {{ app_ami_id }}

update_edx_worker_ami_value:
  salt.function:
    - tgt: 'roles:master'
    - tgt_type: grain
    - name: sdb.set
    - arg:
        - sdb://consul/edx_worker_ami_id
        - {{ worker_ami_id }}<commit_msg>Added quoting to values for arguments to sdb<commit_after>{% set release_number = salt.sdb.get('sdb://consul/edxapp-release-version') %}
{% set app_ami_id = salt.boto_ec2.find_images(ami_name='edxapp_base_release_{}'.format(release_number))[0] %}
{% set worker_ami_id = salt.boto_ec2.find_images(ami_name='edx_worker_base_release_{}'.format(release_number))[0] %}

update_edxapp_ami_value:
  salt.function:
    - tgt: 'roles:master'
    - tgt_type: grain
    - name: sdb.set
    - arg:
        - 'sdb://consul/edx_ami_id'
        - '{{ app_ami_id }}'

update_edx_worker_ami_value:
  salt.function:
    - tgt: 'roles:master'
    - tgt_type: grain
    - name: sdb.set
    - arg:
        - 'sdb://consul/edx_worker_ami_id'
        - '{{ worker_ami_id }}'
{'fraction_non_alphanumeric': 0.15099519560741248, 'fraction_numerical': 0.004118050789293068, 'mean_word_length': 3.4451219512195124, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2132243', 'n_tokens_mistral': 594, 'n_tokens_neox': 582, 'n_words': 71}