Closed Raghuchn closed 1 year ago
You need to make 2 command blocks for this
command:
python --version:
stdout:
- 'Python 3.8.13'
timedatectl:
exit-status: 0
stdout:
- 'NTP service: active'
command: python --version: stdout: - 'Python 3.8.13' timedatectl: exit-status: 0 stdout: - 'NTP service: active'
It works now. Thanks you for the quick response. Really appreciate it!!!
It works now. Thanks you for the quick response. Really appreciate it!!!
Hi,
I am trying to execute multiple commands(goss) in a single yaml file, but not successful in it.
When validate, i get only the output for "python" and not for "datetimectl"
#################################################### Output:
Command: version: exit-status: matches expectation: [0] Command: version: stdout: matches expectation: [Python 3.8.13]
#######################################################
Can someone suggest what am i doing wrong here.
Thanks in Advance!!