lib/jamf/api/classic/api_objects/patch_policy.rb in ruby-jss-3.2.0 vs lib/jamf/api/classic/api_objects/patch_policy.rb in ruby-jss-3.2.1

- old
+ new

@@ -622,10 +622,12 @@ general.add_element('name').text = name general.add_element('enabled').text = enabled?.to_s general.add_element('allow_downgrade').text = allow_downgrade general.add_element('patch_unknown').text = patch_unknown - obj << scope.scope_xml if scope.should_update? + # always include the scope if we have no id yet - we could be + # a clone of an existing object + obj << scope.scope_xml if scope.should_update? || @id.nil? add_self_service_xml doc # self svc xml gave us the user_interaction section user_int = obj.elements['user_interaction']