mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-25 02:50:08 +03:00
Delete duplicated functionality from oneauth(cherry picked from commit 77167a11df24ab91d75d1b809334b86eb3580827)
This commit is contained in:
parent
cfc965e04d
commit
95fa766d24
@ -46,9 +46,6 @@ Usage:
|
||||
|
||||
Commands:
|
||||
|
||||
* create (Creates a new user)
|
||||
oneauth create <username> <ssh public key>
|
||||
|
||||
* quota set (sets quota for a user)
|
||||
oneauth quota set <id> <cpu> <memory>
|
||||
|
||||
@ -116,17 +113,6 @@ when "login"
|
||||
ssh=SshAuth.new
|
||||
ssh.login(user, time)
|
||||
|
||||
when "create"
|
||||
user=OpenNebula::User.new(
|
||||
OpenNebula::User.build_xml, OpenNebula::Client.new)
|
||||
password = ARGV[1]
|
||||
|
||||
result=user.allocate(ARGV[0], password)
|
||||
if !OpenNebula.is_error?(result)
|
||||
puts "ID: " + user.id.to_s
|
||||
exit 0
|
||||
end
|
||||
|
||||
when "key"
|
||||
ssh=SshAuth.new
|
||||
puts ssh.extract_public_key
|
||||
|
Loading…
x
Reference in New Issue
Block a user