fix logic errors introduced by is_system? changes. see r11998 and r12018
git-svn-id: file:///home/svn/framework3/trunk@12019 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
db55db6a2e
commit
d1d4f9f798
|
@ -22,7 +22,7 @@ opts.parse(args) { |opt, idx, val|
|
||||||
def hkcu_base
|
def hkcu_base
|
||||||
key_base = []
|
key_base = []
|
||||||
|
|
||||||
if is_system?
|
if not is_system?
|
||||||
key_base << "HKCU"
|
key_base << "HKCU"
|
||||||
else
|
else
|
||||||
key = "HKU\\"
|
key = "HKU\\"
|
||||||
|
|
|
@ -77,7 +77,7 @@ if client.platform =~ /win32|64/
|
||||||
# Enumerate shares being offered
|
# Enumerate shares being offered
|
||||||
enum_conf_shares()
|
enum_conf_shares()
|
||||||
|
|
||||||
if is_system?
|
if not is_system?
|
||||||
mount_history = enum_recent_mounts("HKEY_CURRENT_USER")
|
mount_history = enum_recent_mounts("HKEY_CURRENT_USER")
|
||||||
run_history = enum_run_unc("HKEY_CURRENT_USER")
|
run_history = enum_run_unc("HKEY_CURRENT_USER")
|
||||||
else
|
else
|
||||||
|
|
|
@ -102,7 +102,7 @@ def enum_viclient
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
if is_system?
|
if not is_system?
|
||||||
recentconns = registry_getvaldata("HKCU\\Software\\VMware\\VMware Infrastructure Client\\Preferences","RecentConnections").split(",")
|
recentconns = registry_getvaldata("HKCU\\Software\\VMware\\VMware Infrastructure Client\\Preferences","RecentConnections").split(",")
|
||||||
print_status("Recent VI Client Connections:")
|
print_status("Recent VI Client Connections:")
|
||||||
recentconns.each do |c|
|
recentconns.each do |c|
|
||||||
|
|
Loading…
Reference in New Issue