lib/vra/client.rb in vmware-vra-2.7.1 vs lib/vra/client.rb in vmware-vra-2.7.2

- old
+ new

@@ -15,11 +15,11 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # -require "ffi_yajl" +require "ffi_yajl" unless defined?(FFI_Yajl) require "passwordmasker" require "vra/http" module Vra class Client @@ -152,9 +152,10 @@ loop do response = get_parsed("#{base_path}&page=#{page}") items += response["content"] break if page >= response["metadata"]["totalPages"] + page += 1 end if items.uniq! raise Vra::Exception::DuplicateItemsDetected,