Most of them can't really be used standalone anyway.
For the one that can, I'm not sure how useful it is,
so remove the main() from it as well.
Signed-off-by: Chris Lalancette <clalance(a)redhat.com>
---
imgfac/ApplicationConfiguration.py | 1 -
imgfac/ImageWarehouse.py | 1 -
imgfac/Template.py | 1 -
imgfac/VMWare.py | 12 ------------
4 files changed, 0 insertions(+), 15 deletions(-)
diff --git a/imgfac/ApplicationConfiguration.py b/imgfac/ApplicationConfiguration.py
index 9311ed5..7688c3a 100644
--- a/imgfac/ApplicationConfiguration.py
+++ b/imgfac/ApplicationConfiguration.py
@@ -1,4 +1,3 @@
-#!/usr/bin/env python
# encoding: utf-8
# Copyright 2011 Red Hat, Inc.
diff --git a/imgfac/ImageWarehouse.py b/imgfac/ImageWarehouse.py
index d0c145d..220adb5 100644
--- a/imgfac/ImageWarehouse.py
+++ b/imgfac/ImageWarehouse.py
@@ -1,4 +1,3 @@
-#!/usr/bin/env python
# encoding: utf-8
# Copyright 2011 Red Hat, Inc.
diff --git a/imgfac/Template.py b/imgfac/Template.py
index 194f675..82b4260 100644
--- a/imgfac/Template.py
+++ b/imgfac/Template.py
@@ -1,4 +1,3 @@
-#!/usr/bin/env python
# encoding: utf-8
# Copyright 2011 Red Hat, Inc.
diff --git a/imgfac/VMWare.py b/imgfac/VMWare.py
index 733ec55..11ea7fd 100755
--- a/imgfac/VMWare.py
+++ b/imgfac/VMWare.py
@@ -1,4 +1,3 @@
-#!/usr/bin/env python
#
# Copyright 2010 Jonathan Kinred <jonathan.kinred(a)gmail.com>
#
@@ -300,14 +299,3 @@ class VMImport:
disk_spec.operation = operation.add
return disk_spec
-
-def main():
- vmc =
VMImport('https://noswhere.com/sdk';, 'Administrator',
'changeme')
- #nic = {'network_name': 'VM Network', 'type':
'VirtualE1000'}
- vmc.import_vm(datastore='datastore1', network_name = 'VM Network',
- name=sys.argv[1], disksize_kb = (10*1024*1024 + 2 ), memory=512,
num_cpus=1,
- guest_id='otherLinux64Guest',
imagefilename="/var/tmp/vmware-test.vmdk")
-
-if __name__ == '__main__':
- main()
-
--
1.7.4.4