refresh_deployments function

Refresh deployments