~ubuntu-branches/ubuntu/vivid/simplestreams/vivid-updates

« back to all changes in this revision

Viewing changes to tools/sstream-mirror-glance

  • Committer: Package Import Robot
  • Author(s): Scott Moser
  • Date: 2013-04-18 18:19:11 UTC
  • mfrom: (1.1.2)
  • Revision ID: package-import@ubuntu.com-20130418181911-st3hkjiy2o4ie4om
Tags: 0.1.0~bzr229-0ubuntu1
* New upstream snapshot.
  * fix a bug in 'products_condense'
  * support http simple and digest auth

Show diffs side-by-side

added added

removed removed

Lines of Context:
41
41
                        help='prefix for each published image name')
42
42
    parser.add_argument('--cloud-name', metavar="name", default=None,
43
43
                        required=True, help='unique name for this cloud')
 
44
    parser.add_argument('--content-id', metavar="name", default=None,
 
45
                        required=True,
 
46
                        help='content-id to use for published data.'
 
47
                             '  may contain "%%(region)s"')
44
48
 
45
49
    parser.add_argument('--verbose', '-v', action='count', default=0)
46
50
    parser.add_argument('--log-file', default=sys.stderr,
75
79
            sys.stderr.write("not writing data anywhere\n")
76
80
            tstore = None
77
81
 
 
82
        mirror_config['content_id'] = args.content_id % {'region': region}
 
83
 
78
84
        tmirror = glance.GlanceMirror(config=mirror_config,
79
85
                                      objectstore=tstore, region=region,
80
86
                                      name_prefix=args.name_prefix)