Fetch site_name if only joiner is enabled.

- Change code to fetch site_name if joiner or spec_updater are enabled.
- Fixes GGUS ticket 99308.
Correct code to PEP8.