Simple os profile update check "obj.physical_id"
Change-Id: Ibf047530e5d4f0d97bd51cbf0860638187567d0c Signed-off-by: Yuanbin.Chen <cybing4@gmail.com>
This commit is contained in:
parent
87db93f02c
commit
3cdffd6744
|
@ -1225,8 +1225,7 @@ class ServerProfile(base.Profile):
|
|||
:returns: True if update was successful or False otherwise.
|
||||
:raises: `EResourceUpdate` if operation fails.
|
||||
"""
|
||||
self.server_id = obj.physical_id
|
||||
if not self.server_id:
|
||||
if not obj.physical_id:
|
||||
return False
|
||||
|
||||
if not new_profile:
|
||||
|
|
Loading…
Reference in New Issue