Whamcloud - gitweb
- allow the --ost command to have no arguments when used for obdecho
authorrread <rread>
Wed, 28 Aug 2002 00:39:24 +0000 (00:39 +0000)
committerrread <rread>
Wed, 28 Aug 2002 00:39:24 +0000 (00:39 +0000)
lustre/utils/lmc

index 0f16445..ac53913 100755 (executable)
@@ -342,9 +342,6 @@ def add_ost(gen, lustre, options, args):
     size = 0
     fstype = 'extN'
     
-    if len(args) < 1:
-        usage()
-
     if options.has_key('node'):
         node_name = options['node']
     else:
@@ -359,6 +356,8 @@ def add_ost(gen, lustre, options, args):
     if obdtype == 'obdecho':
         fstype = ''
     else:
+        if len(args) < 1:
+            usage()
         devname = args[0]
         if len(args) > 1:
             size = args[1]