algosec-sdk 1.2.1 → 1.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.bumpversion.cfg +1 -1
- data/.rubocop.yml +1 -1
- data/lib/algosec-sdk/helpers/business_flow_helper.rb +8 -2
- data/lib/algosec-sdk/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 200b717290ccfad8a20da768a3c93400ac4ac7b6
|
4
|
+
data.tar.gz: eded38f3ba2af6afd8379da7f83d74e9107362c0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 77dd2bd60df9869a2632beeae3a6ce48dceb265476962cb9e6be33a333f55581b713a07f73ffc050978676733abc7bbfc3f21490f49ee1f80be74d7c4e64d36a
|
7
|
+
data.tar.gz: b302c868182f4ffe4cba82d44839a83b0d7e9ac42d86a9fd6bbb022eec9fc9875b0e997d0070bb8c8f438b16a5a2342ec51ba7a9c544047039ccb4f31fbe7e09
|
data/.bumpversion.cfg
CHANGED
data/.rubocop.yml
CHANGED
@@ -366,8 +366,14 @@ module ALGOSEC_SDK
|
|
366
366
|
# TODO: Add unitests that objects are being create only once (if the same object is twice in the incoming list)
|
367
367
|
network_object_names = Set.new(network_object_names)
|
368
368
|
ipv4_or_subnet_objects = network_object_names.map do |object_name|
|
369
|
-
|
370
|
-
|
369
|
+
next unless get_network_object_type(object_name)
|
370
|
+
search_results = search_network_object(object_name, NetworkObjectSearchType::EXACT)
|
371
|
+
if search_results.empty?
|
372
|
+
# nothing was found, mark the object for creation
|
373
|
+
object_name
|
374
|
+
else
|
375
|
+
# if no object named the same way, mark it for creation
|
376
|
+
search_results.any? { |result| result['name'] == object_name } ? nil : object_name
|
371
377
|
end
|
372
378
|
end.compact
|
373
379
|
|
data/lib/algosec-sdk/version.rb
CHANGED