Code Monkey home page Code Monkey logo

Comments (5)

berndfinger avatar berndfinger commented on July 28, 2024

@rhmk Thanks for reporting this. Here's my answer related to issue 2:
The current version contains a different code and already has:

when: not sap_swpm_product_catalog_id is defined

at the end of both tasks you have shown. So it appears that you are referring to an older version. See also #452 , #455, and https://github.com/sap-linuxlab/community.sap_install/pull/509/files#diff-f43020a778df24a123be473ace9b38f760f75e047872b1af08c4b1659a780607 .

from community.sap_install.

berndfinger avatar berndfinger commented on July 28, 2024

@rhmk Regarding issue 1: Can you please the show the code of task community.sap_install.sap_swpm : SAP SWPM - Detect FQDN here?
The output does not match the expected output of the current code of this task, the latter being:

awk '!/^#/&&/NW_getFQDN.FQDN/{print $3}' {{ sap_swpm_tmpdir.path }}/inifile.params

So we are looking for non-empty lines and in all lines which contain NW_getFQDN.FQDN, we are printing the 3rd column (white space delimited) of the line.

from community.sap_install.

berndfinger avatar berndfinger commented on July 28, 2024

For also catching lines which don't have spaces around =, we could use one of:

awk '!/^#/&&/NW_getFQDN.FQDN/{split ($0, a, "="); gsub (" ", "", a[2]); print a[2]}' inifile.params

or

awk '!/^#/&&/NW_getFQDN.FQDN/{gsub ("=", " = "); print $NF}' inifile.params

from community.sap_install.

berndfinger avatar berndfinger commented on July 28, 2024

But please note that we already have the condition:

when: not sap_swpm_fqdn is defined

so we first should check if this condition already catches all cases where the equals sign is not surrounded by spaces.

from community.sap_install.

rhmk avatar rhmk commented on July 28, 2024

I see that both issues seem to be fixed in current dev code, unfortunately I seem to have an issue with my git setup as this is not synced into my local copy, although I did a proper pull from upstream (probably not)

from community.sap_install.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.