You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@deltacloud.apache.org by ma...@apache.org on 2013/03/12 11:13:24 UTC
[1/3] git commit: CIMI: DTACLOUD-509 issue with address_templates
create for supported drivers
CIMI: DTACLOUD-509 issue with address_templates create for supported drivers
https://issues.apache.org/jira/browse/DTACLOUD-509
Project: http://git-wip-us.apache.org/repos/asf/deltacloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/deltacloud/commit/61c88b62
Tree: http://git-wip-us.apache.org/repos/asf/deltacloud/tree/61c88b62
Diff: http://git-wip-us.apache.org/repos/asf/deltacloud/diff/61c88b62
Branch: refs/heads/master
Commit: 61c88b6211c5b03522fb05932ef08f7cbe340f09
Parents: 9a8eab9
Author: marios <ma...@redhat.com>
Authored: Mon Mar 11 13:27:31 2013 +0200
Committer: marios <ma...@redhat.com>
Committed: Tue Mar 12 12:12:50 2013 +0200
----------------------------------------------------------------------
server/lib/cimi/models/address_template.rb | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/deltacloud/blob/61c88b62/server/lib/cimi/models/address_template.rb
----------------------------------------------------------------------
diff --git a/server/lib/cimi/models/address_template.rb b/server/lib/cimi/models/address_template.rb
index 143b9dc..9b5000b 100644
--- a/server/lib/cimi/models/address_template.rb
+++ b/server/lib/cimi/models/address_template.rb
@@ -33,8 +33,8 @@ class CIMI::Model::AddressTemplate < CIMI::Model::Base
current_db.address_templates.map { |t| from_db(t, context) }
end
else
- if context.driver.respond_to? :address_template
- context.driver.address_template(context.credentials, id, :env=>context)
+ if context.driver.respond_to? :address_templates
+ context.driver.address_templates(context.credentials, {:id=>id, :env=>context})
else
template = current_db.address_templates_dataset.first(:id => id)
raise CIMI::Model::NotFound unless template