lib/ropenstack/image/v1.rb
def add_member(id, member_id, can_share, tenant_id)
      if can_share.nil?
        data = {
          :member => {:can_share => false}
        }
      else
        data = {
          :member => {:can_share => can_share}
        }
      end
      put_request(address(tenant_id, "images/" + id + "/members/" + member_id), data, @token)
    end
def add_member(id, member_id, can_share, tenant_id)
      if can_share.nil?
        data = {
          :member => {:can_share => false}
        }
      else
        data = {
          :member => {:can_share => can_share}
        }
      end
      put_request(address(tenant_id, "images/" + id + "/members/" + member_id), data, @token)
    end
Adds a member to an image.
 @param member_id The member to be added
 @param can_share Optional boolean specifiying can_share value. Will default to false.