def get_encryption_key(): encryption_key = config("encryption-key") if not encryption_key: encryption_key = leader_get('heat-auth-encryption-key') return encryption_key