~ubuntuone-pqm-team/canonical-identity-provider/trunk

« back to all changes in this revision

Viewing changes to src/identityprovider/management/commands/readonly.py

  • Committer: Colin Watson
  • Date: 2018-01-26 00:47:02 UTC
  • mto: This revision was merged to the branch mainline in revision 1593.
  • Revision ID: cjwatson@canonical.com-20180126004702-0difdwm66ucwuikk
Use Python 3-style print functions.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
# Copyright 2010 Canonical Ltd.  This software is licensed under the
2
2
# GNU Affero General Public License version 3 (see the file LICENSE).
3
3
 
 
4
from __future__ import print_function
 
5
 
4
6
from optparse import make_option
5
7
 
6
8
from django.conf import settings
66
68
    def show_servers(self):
67
69
        """Provides a report about readonly status of all app servers."""
68
70
        atts = get_server_atts(settings.APP_SERVERS)
69
 
        print loader.render_to_string('admin/readonly.txt', atts)
 
71
        print(loader.render_to_string('admin/readonly.txt', atts))