summaryrefslogtreecommitdiff
path: root/jstests/libs
diff options
context:
space:
mode:
authorSpencer Jackson <spencer.jackson@mongodb.com>2017-07-31 11:21:40 -0400
committerSpencer Jackson <spencer.jackson@mongodb.com>2017-07-31 13:59:59 -0400
commit0a801f1e152136be8cd0d7c57fda71555042cca1 (patch)
tree801ca92c11597ec06e30bbad285ba4d6cd0889f8 /jstests/libs
parent9096def9687739a40df79efe4e9e4d9b19215201 (diff)
downloadmongo-0a801f1e152136be8cd0d7c57fda71555042cca1.tar.gz
SERVER-29182: Add restriction support to the usersInfo command
Diffstat (limited to 'jstests/libs')
-rw-r--r--jstests/libs/host_ipaddr.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/libs/host_ipaddr.js b/jstests/libs/host_ipaddr.js
index d0c191f8ef2..5ff84b0dd2d 100644
--- a/jstests/libs/host_ipaddr.js
+++ b/jstests/libs/host_ipaddr.js
@@ -13,7 +13,7 @@ function get_ipaddr() {
} catch (err) {
}
- var ipFile = path + "ipaddr.log";
+ var ipFile = path + "ipaddr-" + Random.srand() + ".log";
var windowsCmd = "ipconfig > " + ipFile;
var unixCmd = "/sbin/ifconfig | grep inet | grep -v '127.0.0.1' > " + ipFile;
var ipAddr = null;