better deployment id validation
remove debug code
Merge pull request #1063 from control-center/bugfix/CC-182

Bugfix/cc 182