From 14a785208bc39413d799662d416546cb604da1c1 Mon Sep 17 00:00:00 2001
From: Aleksandr Kurbatov <aleksandr.kurbatov@GL1342.local>
Date: Mon, 17 Jun 2024 13:22:11 +0100
Subject: [PATCH] Update SROS optical checks

Remove `split` on results from SROS
---
 .../roles/iptrunk_checks/tasks/check_optical_levels.yaml        | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/geant/gap_ansible/roles/iptrunk_checks/tasks/check_optical_levels.yaml b/geant/gap_ansible/roles/iptrunk_checks/tasks/check_optical_levels.yaml
index f5d65a81..8da95b21 100644
--- a/geant/gap_ansible/roles/iptrunk_checks/tasks/check_optical_levels.yaml
+++ b/geant/gap_ansible/roles/iptrunk_checks/tasks/check_optical_levels.yaml
@@ -57,7 +57,7 @@
 
     - name: Parse SROS port optical output
       ansible.utils.cli_parse:
-        text: "{{out.output['rpc-reply']['nokiaoper:results']['nokiaoper:md-cli-output-block'].split('\n')}}"
+        text: "{{out.output['rpc-reply']['nokiaoper:results']['nokiaoper:md-cli-output-block']}}"
         parser:
           name: ansible.netcommon.native
           template_path: "{{ role_path }}/templates/sros_show_port_optical.yaml"
-- 
GitLab