1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-16 22:50:10 +03:00

Merge branch 'feature-788' of git.opennebula.org:one into feature-788

This commit is contained in:
Ruben S. Montero 2011-09-02 16:15:16 +02:00
commit d417a1b3ef

View File

@ -212,15 +212,15 @@ cmd=CommandParser::CmdParser.new(ARGV) do
command :passwd, passwd_desc, :userid, :password,
:options=>create_options do
if options[:ssh] or options[:x509]
if args[1]
pass = args[1]
else
rc = helper.password(options)
if rc.first == 0
pass = rc[1]
else
exit_with_code *rc
end
else
pass = args[1]
end
helper.perform_action(args[0],options,"Password changed") do |user|