diff --git a/shell/src/infoutils.py b/shell/src/infoutils.py
index f1cad529..993f84e8 100644
--- a/shell/src/infoutils.py
+++ b/shell/src/infoutils.py
@@ -171,7 +171,10 @@ class Entry(object):
bClasses = list(map(lambda x: x.encode('utf-8'), v))
else:
bAttributes[k] = list(map(lambda x: x.encode('utf-8'), v))
- sys.stdout.write(self.ldif_writer.add(dn, bClasses, bAttributes))
+ for line in self.ldif_writer.add(dn, bClasses, bAttributes).split('\n'):
+ if line.startswith('version: '): continue
+ if line.startswith('changetype: add'): continue
+ sys.stdout.write("%s\n" % line)
sys.stdout.write('\n')
for e in self.Children: