add api key and secret as credential fields
---
...0110418120000_add_condor_cloud_provider_type.rb | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/src/db/migrate/20110418120000_add_condor_cloud_provider_type.rb
b/src/db/migrate/20110418120000_add_condor_cloud_provider_type.rb
index 79503a8..8d8dab5 100644
--- a/src/db/migrate/20110418120000_add_condor_cloud_provider_type.rb
+++ b/src/db/migrate/20110418120000_add_condor_cloud_provider_type.rb
@@ -1,7 +1,10 @@
class AddCondorCloudProviderType < ActiveRecord::Migration
def self.up
- ProviderType.create!(:name => "CondorCloud", :build_supported =>
true, :codename =>"condorcloud")
+ provider_type = ProviderType.create!(:name => "CondorCloud",
:build_supported => true, :codename =>"condorcloud")
+ CredentialDefinition.create!(:name => 'username', :label => 'API
Key', :input_type => 'text', :provider_type_id => provider_type.id)
+ CredentialDefinition.create!(:name => 'password', :label =>
'Secret', :input_type => 'password', :provider_type_id =>
provider_type.id)
+
end
def self.down
--
1.7.4.4
Show replies by date