diff --git a/datacenterlight/tests.py b/datacenterlight/tests.py index 7c2f7353..c34c56ba 100644 --- a/datacenterlight/tests.py +++ b/datacenterlight/tests.py @@ -115,8 +115,8 @@ class CeleryTaskTestCase(TestCase): 'response_object').stripe_plan_id}]) stripe_subscription_obj = subscription_result.get('response_object') # Check if the subscription was approved and is active - if stripe_subscription_obj is None or \ - stripe_subscription_obj.status != 'active': + if stripe_subscription_obj is None \ + or stripe_subscription_obj.status != 'active': msg = subscription_result.get('error') raise Exception("Creating subscription failed: {}".format(msg)) diff --git a/hosting/urls.py b/hosting/urls.py index 10e09dd0..455aa97f 100644 --- a/hosting/urls.py +++ b/hosting/urls.py @@ -11,7 +11,6 @@ from .views import ( SSHKeyChoiceView, DashboardView, SettingsView) - urlpatterns = [ url(r'index/?$', IndexView.as_view(), name='index'), url(r'django/?$', DjangoHostingView.as_view(), name='djangohosting'), diff --git a/opennebula_api/models.py b/opennebula_api/models.py index 424ff464..d584bf26 100644 --- a/opennebula_api/models.py +++ b/opennebula_api/models.py @@ -350,8 +350,8 @@ class OpenNebulaManager(): return template_pool except ConnectionRefusedError: logger.info( - """Could not connect to host: {host} via protocol - {protocol}""".format( + """Could not connect to host: {host} via protocol + {protocol}""".format( host=settings.OPENNEBULA_DOMAIN, protocol=settings.OPENNEBULA_PROTOCOL) ) diff --git a/utils/tasks.py b/utils/tasks.py index 28c00c6e..d66c37ee 100644 --- a/utils/tasks.py +++ b/utils/tasks.py @@ -38,7 +38,7 @@ def save_ssh_key(self, hosts, keys): 'state': True # whether key is to be added or } # removed """ - logger.debug("""Running save_ssh_key task for + logger.debug("""Running save_ssh_key task for Hosts: {hosts_str} Keys: {keys_str}""".format(hosts_str=", ".join(hosts), keys_str=", ".join([