Bug 1226206

Summary: [doc] Configure the connected network cards typos in example code
Product: [openSUSE] openSUSE Distribution Reporter: Kauffman <philip>
Component: DocumentationAssignee: Jana Halackova <jsindelarova>
Status: RESOLVED FIXED QA Contact: Frank Sundermeyer <fs>
Severity: Normal    
Priority: P5 - None    
Version: Leap 15.4   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard: https://jira.suse.com/browse/DOCTEAM-1469
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Kauffman 2024-06-12 07:48:06 UTC
Configure the connected network cards :

https://doc.opensuse.org/projects/autoyast/#id-1.9.6.4.6.5.5


Fixed code:
```
<interfaces t="list">
  <% with_link = network_cards.sort_by { |n| n[:name] }.find { |n| n[:link] } %>
  <% if with_link %>
    <interface>
      <device><%= with_link[:device] %></device>
      <startmode>auto</startmode>
      <bootproto>dhcp</bootproto>
      </interface>
  <% end %>
</interfaces>
```

diff

```
--- a	2024-06-12 01:47:05.108761194 -0600
+++ b	2024-06-12 01:46:47.648892157 -0600
@@ -1,10 +1,10 @@
 <interfaces t="list">
-  <% with_link = netword_cards.sort_by { |n| n[:name] }.find { |n| n[:link] } %>
+  <% with_link = network_cards.sort_by { |n| n[:name] }.find { |n| n[:link] } %>
   <% if with_link %>
     <interface>
       <device><%= with_link[:device] %></device>
       <startmode>auto</startmode>
       <bootproto>dhcp</bootproto>
       </interface>
-  <% end >
+  <% end %>
 </interfaces>
```
Comment 1 Tomáš Bažant 2024-06-20 11:35:37 UTC
Thank you for reporting this bug!
It is being tracked and processed as part of our queue.