Permalink
Browse files

small fix

  • Loading branch information...
1 parent 81ff7e0 commit 5bb0cc5dce14b5b60ccc3b33ada469a5b56ee994 @winebarrel winebarrel committed Apr 22, 2012
Showing with 6 additions and 2 deletions.
  1. +6 −2 ec2ui/content/ec2ui/utils.js
@@ -1235,8 +1235,12 @@ function __addNameTagToModel__(tag, model) {
var key = kv[0].trim();
var value = (kv[1] || "").trim();
- if (!model.name && key == "Name") {
- model.name = value;
+ if (key == "Name") {
+ value = (value || '').trim();
+
+ if (value) {
+ model.name = value;
+ }
}
if (key == "Comment") {

0 comments on commit 5bb0cc5

Please sign in to comment.