Fix info-drop scripts
Change-Id: Ia7fca90465bbb97db6fc94b1cedc780bdae65e4f
diff --git a/common/ubuntu_cleanup_salt.sh b/common/ubuntu_cleanup_salt.sh
index 69509b5..da01a28 100644
--- a/common/ubuntu_cleanup_salt.sh
+++ b/common/ubuntu_cleanup_salt.sh
@@ -1,16 +1,8 @@
#!/bin/bash -xe
# Duplicate of ubuntu_info.sh
-mkdir -p /var/log/bootstrap_logs/
-pushd /var/log/bootstrap_logs/
- dpkg-query -W -f='${Package}=${Version}\n' | sort -u |tee -a vcp_initial_pkgs.log
- # Drop some reclass info,if available
- if [[ $(which salt-key) ]] ; then
- for node in $(salt-key -l acc | grep -v 'Accepted Keys:') ; do
- salt ${node} pillar.data --out=json > ${node}.pillardata.json || true
- reclass -n ${node} -o json > ${node}.reclass.json || true
- done
- fi
+mkdir -p /var/log/bootstrap_logs/ ; pushd /var/log/bootstrap_logs/
+ dpkg-query -W -f='${Package}=${Version}\n' |tee -a vcp_initial_pkgs_stage_salt.log
popd
apt-get purge -y salt-formula-*