File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
plugins/storage/volume/linstor/src/main/java/com/cloud/hypervisor/kvm/storage Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ private String getLinstorRscName(String name) {
7272
7373 private String getHostname () {
7474 // either there is already some function for that in the agent or a better way.
75- ProcessBuilder pb = new ProcessBuilder ("/usr/bin/ hostname" );
75+ ProcessBuilder pb = new ProcessBuilder ("hostname" );
7676 try
7777 {
7878 String result ;
@@ -88,7 +88,7 @@ private String getHostname() {
8888 return result .trim ();
8989 } catch (IOException | InterruptedException exc ) {
9090 Thread .currentThread ().interrupt ();
91- throw new CloudRuntimeException ("Unable to run '/usr/bin/ hostname' command." );
91+ throw new CloudRuntimeException ("Unable to run 'hostname' command." );
9292 }
9393 }
9494
You can’t perform that action at this time.
0 commit comments