~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to database/schema/security.py

  • Committer: Stuart Bishop
  • Date: 2011-04-26 13:56:48 UTC
  • mto: (7675.1045.296 db-devel)
  • mto: This revision was merged to the branch mainline in revision 12957.
  • Revision ID: stuart.bishop@canonical.com-20110426135648-r0v0ze3ivxrmnoms
Full database update script for fast deployments

Show diffs side-by-side

added added

removed removed

Lines of Context:
172
172
                    node.nickname, node.connection_string))
173
173
                reset_permissions(
174
174
                    psycopg2.connect(node.connection_string), config, options)
175
 
        else:
176
 
            log.error("--cluster requested, but not a Slony-I cluster.")
177
 
            return 1
178
 
    else:
179
 
        log.info("Resetting permissions on single database")
180
 
        reset_permissions(con, config, options)
 
175
            return
 
176
        log.warning("--cluster requested, but not a Slony-I cluster.")
 
177
    log.info("Resetting permissions on single database")
 
178
    reset_permissions(con, config, options)
181
179
 
182
180
 
183
181
def list_identifiers(identifiers):