diff options
author | Joshua Harlow <harlowja@yahoo-inc.com> | 2012-06-16 09:44:47 -0700 |
---|---|---|
committer | Joshua Harlow <harlowja@yahoo-inc.com> | 2012-06-16 09:44:47 -0700 |
commit | a4454ec81a44142db0c51ceb76b979ace4b1176e (patch) | |
tree | bf98da7158b2d7729c7caf64bad41e2ebc2b34db /cloudinit/sources/__init__.py | |
parent | 1e330c73a24385133ae1d321451c61f16fee766b (diff) | |
download | vyos-cloud-init-a4454ec81a44142db0c51ceb76b979ace4b1176e.tar.gz vyos-cloud-init-a4454ec81a44142db0c51ceb76b979ace4b1176e.zip |
For the different base classes, ensure we are using the 'abc' module + appropriate annotations + metaclasses.
Diffstat (limited to 'cloudinit/sources/__init__.py')
-rw-r--r-- | cloudinit/sources/__init__.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/cloudinit/sources/__init__.py b/cloudinit/sources/__init__.py index 55900119..46350255 100644 --- a/cloudinit/sources/__init__.py +++ b/cloudinit/sources/__init__.py @@ -20,6 +20,8 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. +import abc + from cloudinit import importer from cloudinit import log as logging from cloudinit import user_data as ud @@ -37,6 +39,9 @@ class DataSourceNotFoundException(Exception): class DataSource(object): + + __metaclass__ = abc.ABCMeta + def __init__(self, sys_cfg, distro, paths): self.sys_cfg = sys_cfg self.distro = distro |