You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by to...@apache.org on 2013/10/22 11:16:46 UTC
[4/4] git commit: Update exception which gets thrown if user uses an
old Rackspace provider constant.
Update exception which gets thrown if user uses an old Rackspace provider
constant.
Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/4af39fe8
Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/4af39fe8
Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/4af39fe8
Branch: refs/heads/trunk
Commit: 4af39fe81c82dff420a19c1bdee11f1578a0b4b4
Parents: 7d4021d
Author: Tomaz Muraus <to...@apache.org>
Authored: Tue Oct 22 11:15:43 2013 +0200
Committer: Tomaz Muraus <to...@apache.org>
Committed: Tue Oct 22 11:15:43 2013 +0200
----------------------------------------------------------------------
libcloud/compute/providers.py | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/libcloud/blob/4af39fe8/libcloud/compute/providers.py
----------------------------------------------------------------------
diff --git a/libcloud/compute/providers.py b/libcloud/compute/providers.py
index 82aa75a..26bc284 100644
--- a/libcloud/compute/providers.py
+++ b/libcloud/compute/providers.py
@@ -146,10 +146,12 @@ def get_driver(provider):
old_name = id_to_name_map[provider]
new_name = id_to_name_map[OLD_CONSTANT_TO_NEW_MAPPING[provider]]
- msg = 'Provider constant %s has been removed. New constant ' \
- 'is now called %s.\n' \
- 'For more information on this change and how to modify your ' \
- 'code to work with it, please visit: TODO' % (old_name, new_name)
+ url = 'http://s.apache.org/lc0140un'
+ msg = ('Provider constant %s has been removed. New constant '
+ 'is now called %s.\n'
+ 'For more information on this change and how to modify your '
+ 'code to work with it, please visit: %s' %
+ (old_name, new_name, url))
raise Exception(msg)
return _get_provider_driver(DRIVERS, provider)