projects
/
mirror
/
userdir-ldap.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
05ba896
)
Added delete function
author
jgg
<>
Sat, 28 Apr 2001 21:38:51 +0000
(21:38 +0000)
committer
jgg
<>
Sat, 28 Apr 2001 21:38:51 +0000
(21:38 +0000)
ud-host
patch
|
blob
|
history
diff --git
a/ud-host
b/ud-host
index
d0fe689
..
e16e31a
100755
(executable)
--- a/
ud-host
+++ b/
ud-host
@@
-211,6
+211,7
@@
while(1):
if RootMode == 1:
print " a) Arbitary Change";
print " n) New Host";
if RootMode == 1:
print " a) Arbitary Change";
print " n) New Host";
+ print " d) Delete Host";
print " u) Switch Hosts";
print " x) Exit";
print " u) Switch Hosts";
print " x) Exit";
@@
-265,6
+266,14
@@
while(1):
ChangeAttr(Attrs[0],Attr);
continue;
ChangeAttr(Attrs[0],Attr);
continue;
+ if (Response == 'd'):
+ Really = raw_input("Really (type yes)? ");
+ if Really != 'yes':
+ continue;
+ print "Deleting",HostDn;
+ l.delete_s(HostDn);
+ continue;
+
# Convert the integer response
try:
ID = int(Response);
# Convert the integer response
try:
ID = int(Response);