mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-25 02:50:08 +03:00
feature-307: onehost sync
This commit is contained in:
parent
87f71392d5
commit
b953ffea36
@ -187,6 +187,9 @@ Commands:
|
||||
* top (Lists hosts continuously)
|
||||
onehost top
|
||||
|
||||
* sync (synchronizes probes with remote hosts)
|
||||
onehost sync
|
||||
|
||||
EOT
|
||||
|
||||
def text_commands
|
||||
@ -357,6 +360,14 @@ when "disable"
|
||||
end
|
||||
end
|
||||
|
||||
when "sync"
|
||||
check_parameters("sync", 0)
|
||||
if ONE_LOCATION
|
||||
FileUtils.touch "#{ONE_LOCATION}/lib/remotes"
|
||||
else
|
||||
FileUtils.touch "/var/lib/one/remotes"
|
||||
end
|
||||
|
||||
else
|
||||
onehost_opts.print_help
|
||||
exit -1
|
||||
|
Loading…
x
Reference in New Issue
Block a user