Simple os profile update check "obj.physical_id"

Change-Id: Ibf047530e5d4f0d97bd51cbf0860638187567d0c
Signed-off-by: Yuanbin.Chen <cybing4@gmail.com>
This commit is contained in:
Yuanbin.Chen 2018-05-30 11:23:11 +08:00
parent 87db93f02c
commit 3cdffd6744
1 changed files with 1 additions and 2 deletions

View File

@ -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: