Returns config for given pack and user.
(pack, user)
| 418 | |
| 419 | |
| 420 | def get_config(pack, user): |
| 421 | """Returns config for given pack and user.""" |
| 422 | LOG.debug('Attempting to get config for pack "%s" and user "%s"' % (pack, user)) |
| 423 | if pack and user: |
| 424 | LOG.debug("Pack and user found. Loading config.") |
| 425 | config_loader = ContentPackConfigLoader(pack_name=pack, user=user) |
| 426 | |
| 427 | config = config_loader.get_config() |
| 428 | |
| 429 | else: |
| 430 | config = {} |
| 431 | |
| 432 | LOG.debug("Config: %s", config) |
| 433 | |
| 434 | return config |