Skip to content
This repository has been archived by the owner on Jun 24, 2021. It is now read-only.

Add jmespath and jinja2 precheck #802

Merged
merged 2 commits into from
Jul 2, 2019
Merged

Add jmespath and jinja2 precheck #802

merged 2 commits into from
Jul 2, 2019

Conversation

liubo0127
Copy link
Contributor

No description provided.

Copy link
Contributor

@LinuxGit LinuxGit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@liubo0127 liubo0127 merged commit 4a7186d into pingcap:master Jul 2, 2019
@liubo0127 liubo0127 deleted the liubo/add-precheck branch July 2, 2019 10:48
liubo0127 added a commit that referenced this pull request Jul 2, 2019
* Add jmespath and jinja2 precheck
when: ansible_version.full | version_compare('2.4.2', '<')

- name: Get if jmespath info[1]
shell: pip list | grep -i jmespath | wc -l
Copy link
Member

@sykp241095 sykp241095 Jul 2, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pip show <package> is more efficient.

and user jmespath_exist.rc == 0

Ref: https://pip.pypa.io/en/stable/reference/pip_show/

register: jmespath_exist

- name: Get if jinja2 exist[1]
shell: pip list | grep -i jinja2 | wc -l
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as above.

But more, when there is a package named: jinja2-abc the shell command will succeed.

liubo0127 added a commit that referenced this pull request Jul 3, 2019
* Add jmespath and jinja2 precheck (#802)

* Add parameters to pump config (#805)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants