"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "cloudkitty/fetcher/source.py" between
cloudkitty-8.0.0.tar.gz and cloudkitty-9.0.0.tar.gz

About: OpenStack CloudKitty provides Rating-as-a-Service for OpenStack.
The "Stein" series (latest release).

source.py  (cloudkitty-8.0.0):source.py  (cloudkitty-9.0.0)
skipping to change at line 22 skipping to change at line 22
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
# #
# @author: Martin CAMEY # @author: Martin CAMEY
# #
from oslo_config import cfg from oslo_config import cfg
from cloudkitty import fetcher from cloudkitty import fetcher
SOURCE_FETCHER_OPTS = 'source_fetcher' # NOTE(mc): The deprecated section should be removed in a future release.
source_fetcher_opts = [ FETCHER_SOURCE_OPTS = 'fetcher_source'
cfg.ListOpt('sources', DEPRECATED_FETCHER_SOURCE_OPTS = 'source_fetcher'
default=list(),
help='list of source identifiers'), ] fetcher_source_opts = [
cfg.ListOpt(
'sources',
default=list(),
help='list of source identifiers',
deprecated_group=DEPRECATED_FETCHER_SOURCE_OPTS,
),
]
cfg.CONF.register_opts(fetcher_source_opts, FETCHER_SOURCE_OPTS)
cfg.CONF.register_opts(source_fetcher_opts, SOURCE_FETCHER_OPTS)
CONF = cfg.CONF CONF = cfg.CONF
class SourceFetcher(fetcher.BaseFetcher): class SourceFetcher(fetcher.BaseFetcher):
"""Source projects fetcher.""" """Source projects fetcher."""
name = 'source' name = 'source'
def get_tenants(self): def get_tenants(self):
return CONF.source_fetcher.sources return CONF.fetcher_source.sources
 End of changes. 3 change blocks. 
6 lines changed or deleted 14 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)