Bug 1226206 - [doc] Configure the connected network cards typos in example code
Summary: [doc] Configure the connected network cards typos in example code
Status: RESOLVED FIXED
Alias: None
Product: openSUSE Distribution
Classification: openSUSE
Component: Documentation (show other bugs)
Version: Leap 15.4
Hardware: Other Other
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: Jana Halackova
QA Contact: Frank Sundermeyer
URL:
Whiteboard: https://jira.suse.com/browse/DOCTEAM-...
Keywords:
Depends on:
Blocks:
 
Reported: 2024-06-12 07:48 UTC by Kauffman
Modified: 2024-06-27 11:31 UTC (History)
0 users

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.