move keyscan for config drive
Change-Id: I3a1990a1f3bea8c67bfee22a23ebc8c863cc65b4
diff --git a/config-drive/master_config.sh b/config-drive/master_config.sh
index 93a0a39..6b02fab 100644
--- a/config-drive/master_config.sh
+++ b/config-drive/master_config.sh
@@ -69,13 +69,13 @@
chown -R git:www-data /home/repo/mcp-ci/pipeline-library/*
fi
-ssh-keyscan cfg01 > /var/lib/jenkins/.ssh/known_hosts
-
salt-call saltutil.refresh_pillar
salt-call saltutil.sync_all
salt-call state.sls linux.network,linux,openssh,salt
salt-call state.sls maas.cluster,maas.region,reclass
+ssh-keyscan cfg01 > /var/lib/jenkins/.ssh/known_hosts
+
pillar=`salt-call pillar.data jenkins:client`
if [[ $pillar == *"job"* ]]; then