This certainly isn't the correct long-term place to do this, but we don't want to spend a lot of time doing throw-away code. Enter it in here, and we will have to revisit this when we have a real key management architecture.
Signed-off-by: Chris Lalancette <[email protected]> --- src/dbomatic/dbomatic | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/src/dbomatic/dbomatic b/src/dbomatic/dbomatic index d52f655..8a3e968 100755 --- a/src/dbomatic/dbomatic +++ b/src/dbomatic/dbomatic @@ -210,6 +210,12 @@ class CondorEventLog < Nokogiri::XML::SAX::Document end inst.cloud_account_id = cloud_account.id + + # FIXME: we are updating the instance_key_id here, but this is really not + # the right way or place to do this. This will have to be revisited when + # we come up with a real key management architecture + inst.instance_key_id = cloud_account.instance_key.id + inst.save! end -- 1.7.3.1 _______________________________________________ deltacloud-devel mailing list [email protected] https://fedorahosted.org/mailman/listinfo/deltacloud-devel
