diff options
author | James E. Blair <jeblair@redhat.com> | 2017-03-28 16:16:34 -0700 |
---|---|---|
committer | James E. Blair <jeblair@redhat.com> | 2017-04-06 13:45:17 -0700 |
commit | 1c7744207c304582e84a97c4416d06496be996c7 (patch) | |
tree | ea397f3c923e2aaa8cf2c64b77fc4173967cb010 /zuul/source/__init__.py | |
parent | f43b53a67f5ce283da11d1c26e9c5730af53bd23 (diff) | |
download | zuul-1c7744207c304582e84a97c4416d06496be996c7.tar.gz |
Add canonical hostname to source object
This is the start of the implementation of:
http://lists.openstack.org/pipermail/openstack-infra/2017-March/005208.html
It lets us associate a canonical hostname with every connection
that we will later use to uniquely identify source code repos.
Story: 2000953
Change-Id: I7f2e64944d46f304e63a54078e682fd5e1682f27
Diffstat (limited to 'zuul/source/__init__.py')
-rw-r--r-- | zuul/source/__init__.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/zuul/source/__init__.py b/zuul/source/__init__.py index 0fc9dd3c0..f0eeba6e9 100644 --- a/zuul/source/__init__.py +++ b/zuul/source/__init__.py @@ -27,9 +27,10 @@ class BaseSource(object): Defines the exact public methods that must be supplied.""" - def __init__(self, driver, connection, config=None): + def __init__(self, driver, connection, canonical_hostname, config=None): self.driver = driver self.connection = connection + self.canonical_hostname = canonical_hostname self.config = config or {} @abc.abstractmethod |