Skip to content

Commit

Permalink
Scrub credential in docker pull command line (#869)
Browse files Browse the repository at this point in the history
  • Loading branch information
qiluo-msft authored and yxieca committed Apr 16, 2019
1 parent dc7d58f commit 0bc2acf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ansible/swap_syncd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,10 @@
set_fact:
sonic_image_version: "{{ result.stdout }}"

# Note: no_log requires passlib python library
- name: Pull syncd-rpc docker from registry
shell: docker login -u {{docker_registry_username}} -p {{docker_registry_password}} {{docker_registry_host}}; docker pull {{docker_registry_host}}/{{docker_rpc_image_name}}:{{sonic_image_version}}
no_log: true

- name: Tag pulled images as syncd
shell: docker tag {{docker_registry_host}}/{{docker_rpc_image_name}}:{{sonic_image_version}} {{docker_syncd_name}}
Expand Down

0 comments on commit 0bc2acf

Please sign in to comment.