~juju-qa/juju-ci-tools/trunk

« back to all changes in this revision

Viewing changes to jujucharm.py

  • Committer: Curtis Hovey
  • Date: 2017-01-25 02:32:29 UTC
  • mfrom: (1855 trunk)
  • mto: This revision was merged to the branch mainline in revision 1865.
  • Revision ID: curtis@canonical.com-20170125023229-g7c6bzt0cqe1j8g3
Merged trunk and resolved conflicts.

Show diffs side-by-side

added added

removed removed

Lines of Context:
173
173
 
174
174
 
175
175
def sane_charm_store_api_url(url):
 
176
    """Ensure the store url includes the right parts."""
176
177
    if url is None:
177
178
        return CharmCommand.default_api_url
178
 
    return '{}/charmstore'.format(re.sub('//(www\.)?', '//api.', url))
 
179
    return '{}/charmstore'.format(url)