-
-
Save dmamolina/14c2d2bc6ec53fcdab72 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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