lib/yao/resources/security_group.rb in yao-0.7.0 vs lib/yao/resources/security_group.rb in yao-0.8.0
- old
+ new
@@ -1,8 +1,10 @@
require 'yao/resources/security_group_rule'
module Yao::Resources
class SecurityGroup < Base
- friendly_attributes :name, :description, :tenant_id
+ include TenantAssociationable
+
+ friendly_attributes :name, :description
def rules
self[["rules", SecurityGroupRule].join("__")] ||= (case self.class.service
when "compute"
self["rules"].map{|r| SecurityGroupRule.new(r) }