NetApp: Fix usage of iso8601_from_timestamp

The commit I35ef3205657481f2a49a060ccb199babe582ff7e introduced
the deprecated isotime(), and iso8601_from_timestamp() is
deprecated as of 1.6. So usage of iso8601_from_timestamp should
be removed in NetApp

Change-Id: I43f4d5bb73255df0c1c7920553c0ad300613eb1a
Partial-Bug: #1715325
This commit is contained in:
chenghuiyu 2017-09-06 17:12:00 +08:00
parent 40d08b3e81
commit 2058b54b72
1 changed files with 3 additions and 2 deletions

View File

@ -20,6 +20,7 @@ single-SVM or multi-SVM functionality needed by the cDOT Manila drivers.
"""
import copy
import datetime
import json
import math
import socket
@ -1520,8 +1521,8 @@ class NetAppCmodeFileStorageLibrary(object):
# one hour.
if (last_update_timestamp and
(timeutils.is_older_than(
timeutils.iso8601_from_timestamp(last_update_timestamp),
3600))):
datetime.datetime.utcfromtimestamp(last_update_timestamp)
.isoformat(), 3600))):
return constants.REPLICA_STATE_OUT_OF_SYNC
# Check all snapshots exist