Comments (5)
@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.
@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.
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.
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.
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)
- collection: Add SPDX headers to all files of the collection HOT 2
- sap_install_media_detect: reduce stdout with loop labels HOT 1
- sap_hana_preconfigure/RHEL: Set net.core.somaxconn only for RHEL <= 8.7
- sap_general_preconfigure: The strict DNS check enforcement of PR 765 causes failures in certain cloud environments HOT 4
- sap_hana_install : SAP HANA Checks - Fail if the user 'sidadm' exists HOT 2
- sap_hana_install: Do not fail if sap_hana_install_common_master_password is not set. HOT 1
- sap_hana_preconfigure/SLES: sap_hana_preconfigure_update needs validation/wait HOT 1
- sap_swpm: unhandled exception when using sap_swpm_swpm_observer_mode...
- sap_hana_preconfigure/RHEL: tsx kernel parameters not set for RHEL9 HOT 2
- sap_hana/sap_swpm: Linux Special Characters HOT 2
- sap_storage_setup: README.MD example is wrong, please fix it.
- sap_hana_install: Use polling for hdblcm HOT 1
- collection: Fix 'yaml[octal-values]'
- sap_hana_preconfigure/RHEL/NetApp: Sync with SAP note 3024346 v.10 HOT 2
- sap_hana_preconfigure/RHEL/NetApp: Ensure two NetApp related kernel parameters are not present in file sap_hana.conf
- sap_hana_preconfigure/SLES: Remove default saptune version in readme
- sap_hana_preconfigure/SLES: Update azure override readme and conditional
- sap_swpm: Reduce the amount of empty lines in inifile.params
- collection: Synchronize all .yamllint.yml files
- sap_general_preconfigure/RHEL: Add FQCN to include_role tasks HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from community.sap_install.