mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-26 06:50:09 +03:00
Delete duplicated functionality from oneauth
This commit is contained in:
parent
1114fcce4e
commit
77167a11df
@ -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