Skip to content

Commit

Permalink
remove bad lines leftover from merge
Browse files Browse the repository at this point in the history
  • Loading branch information
snobear committed Jun 25, 2014
1 parent 62e89b1 commit 2b0cefe
Showing 1 changed file with 0 additions and 27 deletions.
27 changes: 0 additions & 27 deletions ezmomi.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,38 +47,12 @@ def get_configs(self, kwargs):
# compile list of parameters that were not set
notset.append(key)

<<<<<<< HEAD
if notset:
parser.print_help()
logging.error("Required parameters not set: %s\n" % notset)
sys.exit(1)

return config
=======
if task.info.state == vim.TaskInfo.State.success:
if task.info.result is not None and not hideResult:
out = '%s completed successfully, result: %s' % (actionName, task.info.result)
else:
out = '%s completed successfully.' % actionName
else:
out = '%s did not complete successfully: %s' % (actionName, task.info.error)
print out
raise task.info.error

return task.info.result

'''
Get the vsphere object associated with a given text name
'''
def get_obj(content, vimtype, name):
obj = None
container = content.viewManager.CreateContainerView(content.rootFolder, vimtype, True)
for c in container.view:
if c.name == name:
obj = c
break
return obj
>>>>>>> master

'''
Connect to vCenter server
Expand Down Expand Up @@ -121,7 +95,6 @@ def list_objects(self):
for c in container.view:
print "{0:<20} {1:<20}".format(c._moId, c.name)


def clone(self):
self.config['hostname'] = self.config['hostname'].lower()
self.config['mem'] = self.config['mem'] * 1024 # convert GB to MB
Expand Down

0 comments on commit 2b0cefe

Please sign in to comment.