Den 23 okt. 2018 18:56 skrev Nathanaël Blanchet <blanc...@abes.fr>:
In addition of double quote, there is an extra space  between : and /

So, the correct runcmd should be:

sed -i "/^datasource_list:/d" /etc/cloud/cloud.cfg; echo
''datasource_list:["NoCloud", "ConfigDrive"]'' >> /etc/cloud/cloud.cfg

Don't you have to escape the double quotes inside of the double quotes?

# sed -i "/^datasource_list:/d" /etc/cloud/cloud.cfg; echo ''datasource_list [\"NoCloud\", \"ConfigDrive\"]'' >> /etc/cloud/cloud.cfg

/K


Le 23/10/2018 à 18:43, Nathanaël Blanchet a écrit :
> - 'sed -i ' '/^datasource_list: /d' ' /etc/cloud/cloud.cfg; echo '
> 'datasource_list:
>   ["NoCloud", "ConfigDrive"]' ' >> /etc/cloud/cloud.cfg'

--
Nathanaël Blanchet

Supervision réseau
Pôle Infrastrutures Informatiques
227 avenue Professeur-Jean-Louis-Viala
34193 MONTPELLIER CEDEX 5
Tél. 33 (0)4 67 54 84 55
Fax 33 (0)4 67 54 84 14
blanc...@abes.fr
_______________________________________________
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/site/privacy-policy/
oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/
List Archives: https://lists.ovirt.org/archives/list/users@ovirt.org/message/ZCVBR5IO6FPKU63CMZL3UVKNFGYU7DW6/

_______________________________________________
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/site/privacy-policy/
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/users@ovirt.org/message/FATHCQNBQGZJXEHO5IOCO5DWDOLAUPRA/

Reply via email to