From 16ee3c262fbac7d1475ad006f40e35b6bb9a4213 Mon Sep 17 00:00:00 2001 From: "Endi S. Dewata" Date: Thu, 27 Mar 2014 18:24:39 -0400 Subject: Refactored TPS profiles. The TPS profile has been modified to use PATCH for update operation as required by Backbone. The ProfileData class has been modified to accept null properties to indicate that the properties are not being updated. The ProfileModel class has been modified to use JSON data type for enable and disable operations. Ticket #654 --- .../src/com/netscape/cmstools/tps/profile/ProfileCLI.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'base/java-tools/src') diff --git a/base/java-tools/src/com/netscape/cmstools/tps/profile/ProfileCLI.java b/base/java-tools/src/com/netscape/cmstools/tps/profile/ProfileCLI.java index 8b02f2e57..b27578ffc 100644 --- a/base/java-tools/src/com/netscape/cmstools/tps/profile/ProfileCLI.java +++ b/base/java-tools/src/com/netscape/cmstools/tps/profile/ProfileCLI.java @@ -61,9 +61,11 @@ public class ProfileCLI extends CLI { if (showProperties) { System.out.println(" Properties:"); Map properties = profileData.getProperties(); - for (String name : properties.keySet()) { - String value = properties.get(name); - System.out.println(" " + name + ": " + value); + if (properties != null) { + for (String name : properties.keySet()) { + String value = properties.get(name); + System.out.println(" " + name + ": " + value); + } } } -- cgit