~ubuntu-branches/ubuntu/trusty/ceilometer/trusty-proposed

« back to all changes in this revision

Viewing changes to ceilometer/openstack/common/db/sqlalchemy/provision.py

  • Committer: Package Import Robot
  • Author(s): Chuck Short, James Page, Chuck Short
  • Date: 2014-01-23 15:08:11 UTC
  • mfrom: (1.1.11)
  • Revision ID: package-import@ubuntu.com-20140123150811-1zaismsuyh1hcl8y
Tags: 2014.1~b2-0ubuntu1
[ James Page ]
* d/control: Add python-jsonpath-rw to BD's.
* d/p/fix-setup-requirements.patch: Bump WebOb to support < 1.4.
 (LP: #1261101)

[ Chuck Short ]
* New upstream version.
* debian/control, debian/ceilometer-common.install: Split out
  ceilometer-alarm-evaluator and ceilometer-alarm-notifier into their
  own packages. (LP: #1250002)
* debian/ceilometer-agent-central.logrotate,
  debian/ceilometer-agent-compute.logrotate,
  debian/ceilometer-api.logrotate,
  debian/ceilometer-collector.logrotate: Add logrotate files, 
  thanks to Ahmed Rahal. (LP: #1224223)
* Fix typos in upstart files.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# vim: tabstop=4 shiftwidth=4 softtabstop=4
2
 
 
3
1
# Copyright 2013 Mirantis.inc
4
2
# All Rights Reserved.
5
3
#
22
20
import random
23
21
import string
24
22
 
 
23
from six import moves
25
24
import sqlalchemy
26
25
 
27
26
from ceilometer.openstack.common.db import exception as exc
34
33
    """Generate credentials."""
35
34
    auth_dict = {}
36
35
    for name in names:
37
 
        val = ''.join(random.choice(string.lowercase) for i in xrange(10))
 
36
        val = ''.join(random.choice(string.ascii_lowercase)
 
37
                      for i in moves.range(10))
38
38
        auth_dict[name] = val
39
39
    return auth_dict
40
40