Skip to content

Instantly share code, notes, and snippets.

@dmamolina
Created November 25, 2013 17:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dmamolina/14c2d2bc6ec53fcdab72 to your computer and use it in GitHub Desktop.
Save dmamolina/14c2d2bc6ec53fcdab72 to your computer and use it in GitHub Desktop.
diff --git a/src/client/bin/appmarket b/src/client/bin/appmarket
index f0e6fe5..c308918 100755
--- a/src/client/bin/appmarket
+++ b/src/client/bin/appmarket
@@ -241,14 +241,14 @@ cmd=CommandParser::CmdParser.new(ARGV) do
Update an appliance of the Marketplace
EOT
- command :update, update_desc, :file do
+ command :update, update_desc, :id, :file do
client = Market::ApplianceClient.new(
options[:username],
options[:password],
options[:server],
USER_AGENT)
- response = client.update(File.read(args[0]))
+ response = client.update(File.read(args[1]), args[0])
if CloudClient::is_error?(response)
[response.code.to_i, response.to_s]
diff --git a/src/client/bin/appmarket-user b/src/client/bin/appmarket-user
index fc52275..2a4b7bc 100755
--- a/src/client/bin/appmarket-user
+++ b/src/client/bin/appmarket-user
@@ -247,14 +247,14 @@ EOT
Update a given User
EOT
- command :update, update_desc, :file do
+ command :update, update_desc, :id, :file do
client = Market::UserClient.new(
options[:username],
options[:password],
options[:server],
USER_AGENT)
- response = client.update(File.read(args[0]))
+ response = client.update(File.read(args[1]), args[0])
if CloudClient::is_error?(response)
[response.code.to_i, response.to_s]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment