Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Sun Mar 15, 2015 7:34 am 
Offline

Joined: Sun Mar 15, 2015 7:28 am
Posts: 1
Hi,

I wonder if someone can help me, I'm trying to create a VM and run a script, is this the correct json syntax?

linode create Node03 --location dallas --plan linode1024 --payment-term 1 --distribution 'Ubuntu 12.04' --group HTTP_Cluster --stackscript 12 --stackscriptjson { "db_password": "test12345" } --password test12345

I get this error

The JSON provided is invalid. Re-run with 'linode rebuild Node03 ...'

Many thanks


Top
   
PostPosted: Fri Apr 10, 2015 8:02 am 
Offline

Joined: Fri Apr 10, 2015 7:56 am
Posts: 1
Due to how bash parses your command, the JSON you define is actually: '{', which is invalid.

Replace:
Code:
--stackscriptjson { "db_password": "test12345" }

with:
Code:
--stackscriptjson '{ "db_password": "test12345" }'

to tell the CLI to interpret your JSON string as 1 command-line parameter


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group