Remove "else" branch in "create_vnfd" function

There is not necessary for "else" branch, so it remove.
Co-Authored-By: dharmendra kushwaha <dharmendra.kushwaha@nectechnologies.in>

Change-Id: Ic4313175518513e583795b84c2725b770eb2888f
This commit is contained in:
dharmendra 2016-08-29 14:20:23 +09:00 committed by dharmendra kushwaha
parent 48d458d290
commit 95733d9eb4

@ -397,7 +397,7 @@ class Client(ClientBase):
@APIParamsCall
def create_vnfd(self, body=None):
if body is not None:
if body:
if ("tosca_definitions_version" not in
body[self._VNFD]['attributes']['vnfd']):
_logger.warning("VNFD legacy templates are deprecated. Please "
@ -410,8 +410,6 @@ class Client(ClientBase):
" derived from TOSCA template values.")
body[self._VNFD]['infra_driver'] = 'heat'
body[self._VNFD]['mgmt_driver'] = 'noop'
else:
body = None
return self.post(self.vnfds_path, body)
@APIParamsCall