diff options
author | Chris St. Pierre <chris.a.st.pierre@gmail.com> | 2012-05-18 16:07:47 -0400 |
---|---|---|
committer | Chris St. Pierre <chris.a.st.pierre@gmail.com> | 2012-05-18 16:07:56 -0400 |
commit | e8f100e751d5ad49b66dad50df424e879f8fe01a (patch) | |
tree | 58a977b70d7edbea38659f6c206ca6a1d93faae4 | |
parent | bc52f6ac0c56c9551b58fb5110259d87b3a97056 (diff) | |
download | bcfg2-e8f100e751d5ad49b66dad50df424e879f8fe01a.tar.gz bcfg2-e8f100e751d5ad49b66dad50df424e879f8fe01a.tar.bz2 bcfg2-e8f100e751d5ad49b66dad50df424e879f8fe01a.zip |
fixed some stringification issues
-rw-r--r-- | src/lib/Bcfg2/Server/Plugins/Packages/PackagesSources.py | 2 | ||||
-rw-r--r-- | src/lib/Bcfg2/Server/Plugins/Packages/Source.py | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/src/lib/Bcfg2/Server/Plugins/Packages/PackagesSources.py b/src/lib/Bcfg2/Server/Plugins/Packages/PackagesSources.py index a6924b5d0..2e035a785 100644 --- a/src/lib/Bcfg2/Server/Plugins/Packages/PackagesSources.py +++ b/src/lib/Bcfg2/Server/Plugins/Packages/PackagesSources.py @@ -106,7 +106,7 @@ class PackagesSources(Bcfg2.Server.Plugin.SingleXMLFileBacked, return "PackagesSources: %s" % repr(self.entries) def __str__(self): - return "PackagesSources: %s" % str(self.entries) + return "PackagesSources: %s sources" % len(self.entries) def __len__(self): return len(self.entries) diff --git a/src/lib/Bcfg2/Server/Plugins/Packages/Source.py b/src/lib/Bcfg2/Server/Plugins/Packages/Source.py index edcdcd9f2..2bc4b4dc2 100644 --- a/src/lib/Bcfg2/Server/Plugins/Packages/Source.py +++ b/src/lib/Bcfg2/Server/Plugins/Packages/Source.py @@ -169,6 +169,9 @@ class Source(Bcfg2.Server.Plugin.Debuggable): else: return self.__class__.__name__ + def __repr__(self): + return str(self) + def get_urls(self): return [] urls = property(get_urls) |