We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2729ee1 commit 393f3d7Copy full SHA for 393f3d7
1 file changed
plugins/storage/volume/linstor/src/main/java/com/cloud/hypervisor/kvm/storage/LinstorStorageAdaptor.java
@@ -72,7 +72,7 @@ private String getLinstorRscName(String name) {
72
73
private String getHostname() {
74
// either there is already some function for that in the agent or a better way.
75
- ProcessBuilder pb = new ProcessBuilder("/usr/bin/hostname");
+ ProcessBuilder pb = new ProcessBuilder("hostname");
76
try
77
{
78
String result;
@@ -88,7 +88,7 @@ private String getHostname() {
88
return result.trim();
89
} catch (IOException | InterruptedException exc) {
90
Thread.currentThread().interrupt();
91
- throw new CloudRuntimeException("Unable to run '/usr/bin/hostname' command.");
+ throw new CloudRuntimeException("Unable to run 'hostname' command.");
92
}
93
94
0 commit comments