[jbosstools-commits] JBoss Tools SVN: r24478 - in trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui: src/org/jboss/tools/deltacloud/ui/views and 1 other directory.

jbosstools-commits at lists.jboss.org jbosstools-commits at lists.jboss.org
Thu Aug 26 15:46:24 EDT 2010


Author: jjohnstn
Date: 2010-08-26 15:46:24 -0400 (Thu, 26 Aug 2010)
New Revision: 24478

Modified:
   trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/ChangeLog
   trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/views/InstanceView.java
Log:
2010-08-26  Jeff Johnston  <jjohnstn at redhat.com>

	* src/org/jboss/tools/deltacloud/ui/views/InstanceView.java (.run): For RSE
	action, set the default userid to root when the host is created.



Modified: trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/ChangeLog
===================================================================
--- trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/ChangeLog	2010-08-26 18:29:05 UTC (rev 24477)
+++ trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/ChangeLog	2010-08-26 19:46:24 UTC (rev 24478)
@@ -1,5 +1,10 @@
 2010-08-26  Jeff Johnston  <jjohnstn at redhat.com>
 
+	* src/org/jboss/tools/deltacloud/ui/views/InstanceView.java (.run): For RSE
+	action, set the default userid to root when the host is created.
+
+2010-08-26  Jeff Johnston  <jjohnstn at redhat.com>
+
 	* src/org/jboss/tools/deltacloud/ui/views/CVImagesCategoryElement.java (listChanged): Add new
 	cloud argument.
 	* src/org/jboss/tools/deltacloud/ui/views/CVInstancesCategoryElement.java (listChanged): Ditto. 

Modified: trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/views/InstanceView.java
===================================================================
--- trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/views/InstanceView.java	2010-08-26 18:29:05 UTC (rev 24477)
+++ trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/views/InstanceView.java	2010-08-26 19:46:24 UTC (rev 24478)
@@ -49,6 +49,7 @@
 import org.eclipse.ui.IWorkbenchActionConstants;
 import org.eclipse.ui.PlatformUI;
 import org.eclipse.ui.part.ViewPart;
+import org.jboss.tools.deltacloud.ui.Activator;
 import org.jboss.tools.deltacloud.core.DeltaCloud;
 import org.jboss.tools.deltacloud.core.DeltaCloudException;
 import org.jboss.tools.deltacloud.core.DeltaCloudInstance;
@@ -488,11 +489,12 @@
 				}
 				String connectionName = instance.getName() + " [" + instance.getId() + "]"; //$NON-NLS-1$ //$NON-NLS-2$
 				try {
-					@SuppressWarnings("unused")
 					IHost host = registry.createHost(sshType, connectionName, hostname, null);
+					if (host != null)
+						host.setDefaultUserId("root"); //$NON-NLS-1$
 				} catch (Exception e) {
 					// TODO Auto-generated catch block
-					e.printStackTrace();
+					Activator.log(e);
 				}
 			}
 		};



More information about the jbosstools-commits mailing list