Skip to content

Commit

Permalink
Fixes the default value for dnsServers when none is provided.
Browse files Browse the repository at this point in the history
Change-type: patch
Signed-off-by: Carlo Miguel F. Cruz <carloc@balena.io>
  • Loading branch information
cmfcruz committed Aug 10, 2023
1 parent 69de20e commit ec17472
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions resources/resincli.robot
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ Configure "${image}" version "${os_version}" with "${application_name}"
Process ${result_register}
${result} = Run Process balena os configure ${image} --device ${result_register.stdout} --version ${os_version} --config-network ethernet --dev shell=yes
Process ${result}
${DNS_SERVER} = Get Environment Variable DNS_SERVER default=True
${result_dns} = Run Keyword If '${DNS_SERVER}' != '' Run Process balena config write --drive "${image}" dnsServers "${DNS_SERVER}" shell=yes
${DNS_SERVER} = Get Environment Variable DNS_SERVER default=""
${result_dns} = Run Keyword If '${DNS_SERVER}' != "" Run Process balena config write --drive "${image}" dnsServers "${DNS_SERVER}" shell=yes
Process ${result_dns}
Return From Keyword ${result_register.stdout}

Expand Down

0 comments on commit ec17472

Please sign in to comment.