def update_policy(new_policy, agent_identity)
      return false unless supported_by_platform?

      update_users(new_policy.users, agent_identity, new_policy) do |audit_content|
        yield audit_content if block_given?
      end

      true
    end
def update_policy(new_policy, agent_identity)
      return false unless supported_by_platform?

      update_users(new_policy.users, agent_identity, new_policy) do |audit_content|
        yield audit_content if block_given?
      end

      true
    end
Enact the login policy specified in new_policy for this system. The policy becomes
 effective immediately and controls which public keys are trusted for SSH access to
 the superuser account.

 == Parameters:
 @param [RightScale::LoginPolicy] New login policy
 @param [String] Serialized instance agent identity

 == Yields:
 @yield [String] audit content yielded to the block provided

 == Returns:
 @return [TrueClass] if supported by given platform
 @return [FalseClass] if not supported by given platform