You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by an...@apache.org on 2014/03/27 23:32:22 UTC
git commit: updated refs/heads/master to 6356f5f
Repository: cloudstack
Updated Branches:
refs/heads/master 781010781 -> 6356f5fdb
add more log for creating XS pool network
Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/6356f5fd
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/6356f5fd
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/6356f5fd
Branch: refs/heads/master
Commit: 6356f5fdb0235883fccf6aa6c36e613885b47701
Parents: 7810107
Author: Anthony Xu <an...@citrix.com>
Authored: Thu Mar 27 15:31:30 2014 -0700
Committer: Anthony Xu <an...@citrix.com>
Committed: Thu Mar 27 15:31:59 2014 -0700
----------------------------------------------------------------------
.../com/cloud/hypervisor/xen/resource/CitrixResourceBase.java | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cloudstack/blob/6356f5fd/plugins/hypervisors/xen/src/com/cloud/hypervisor/xen/resource/CitrixResourceBase.java
----------------------------------------------------------------------
diff --git a/plugins/hypervisors/xen/src/com/cloud/hypervisor/xen/resource/CitrixResourceBase.java b/plugins/hypervisors/xen/src/com/cloud/hypervisor/xen/resource/CitrixResourceBase.java
index e8cc400..372d337 100644
--- a/plugins/hypervisors/xen/src/com/cloud/hypervisor/xen/resource/CitrixResourceBase.java
+++ b/plugins/hypervisors/xen/src/com/cloud/hypervisor/xen/resource/CitrixResourceBase.java
@@ -4127,8 +4127,12 @@ public abstract class CitrixResourceBase implements ServerResource, HypervisorRe
protected Pair<Long, Integer> parseTimestamp(String timeStampStr) {
String[] tokens = timeStampStr.split("-");
- assert (tokens.length == 3) : "It's our timestamp but it doesn't fit our format: " + timeStampStr;
+ if (tokens.length != 3) {
+ s_logger.debug("timeStamp in network has wrong pattern: " + timeStampStr);
+ return null;
+ }
if (!tokens[0].equals("CsCreateTime")) {
+ s_logger.debug("timeStamp in network doesn't start with CsCreateTime: " + timeStampStr);
return null;
}
return new Pair<Long, Integer>(Long.parseLong(tokens[1]), Integer.parseInt(tokens[2]));