Skip to content

Commit

Permalink
deploy: import prod_* with absolute_import
Browse files Browse the repository at this point in the history
so we are able to load the python modules located in the same directory
and be python2 compatible.

Fixes ceph#286
Signed-off-by: Kefu Chai <[email protected]>
  • Loading branch information
tchaikov committed Aug 7, 2021
1 parent 21f29e4 commit 066c00b
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions deploy/playbooks/roles/common/templates/prod.py.j2
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
# {{ ansible_managed }}
from __future__ import absolute_import

from pecan.hooks import TransactionHook
from chacra import models
from chacra import hooks
from prod_db import sqlalchemy
from prod_api_creds import api_key, api_user
from prod_callbacks import callback_url, callback_user, callback_key, health_ping, health_ping_url, callback_verify_ssl, hostname
from .prod_db import sqlalchemy
from .prod_api_creds import api_key, api_user
from .prod_callbacks import callback_url, callback_user, callback_key, health_ping, health_ping_url, callback_verify_ssl, hostname


# Server Specific Configurations
Expand Down

0 comments on commit 066c00b

Please sign in to comment.