test push
This commit is contained in:
parent
f06c3ccc56
commit
c7f8e97302
|
@ -1,15 +1,14 @@
|
||||||
#!/usr/bin/python2
|
#!/usr/bin/python2 -B
|
||||||
|
|
||||||
""" simple display to show results of disk.py """
|
""" simple display to show results of disk.py """
|
||||||
|
|
||||||
import disk
|
import disk
|
||||||
|
|
||||||
#output
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
diskmoninstance = disk.diskmon()
|
diskmoninstance = disk.diskmon()
|
||||||
for partition in diskmoninstance.partitions:
|
for partition in diskmoninstance.partitions:
|
||||||
print "device:\t\t" + str(partition["device"]) + \
|
print "device\t\t:" + str(partition["device"]) + \
|
||||||
"\nuuid:\t\t" + str(partition["uuid"])
|
"\nuuid\t\t:" + str(partition["uuid"])
|
||||||
if partition.has_key("mountpoint"):
|
if partition.has_key("mountpoint"):
|
||||||
print "mountpoint:\t" + str(partition["mountpoint"]) + \
|
print "mountpoint:\t" + str(partition["mountpoint"]) + \
|
||||||
"\nfilesystem:\t" + str(partition["filesystem"]) + \
|
"\nfilesystem:\t" + str(partition["filesystem"]) + \
|
||||||
|
@ -18,3 +17,5 @@ if __name__ == "__main__":
|
||||||
"\nfree blocks:\t" + str(partition["free blocks"]) + "\n"
|
"\nfree blocks:\t" + str(partition["free blocks"]) + "\n"
|
||||||
else:
|
else:
|
||||||
print "\n"
|
print "\n"
|
||||||
|
|
||||||
|
#end of file
|
||||||
|
|
Reference in New Issue