mirror of
				https://github.com/xcat2/xcat-core.git
				synced 2025-10-31 11:22:27 +00:00 
			
		
		
		
	Overwriting the -u option passed in to bmcdiscover command was
only getting executed under a test for the -p option. Move the check outside so we overlay the default if any option is specified
This commit is contained in:
		| @@ -206,11 +206,11 @@ sub bmcdiscovery_processargs { | ||||
|     # | ||||
|     ($bmc_user, $bmc_pass) = bmcaccount_from_passwd(); | ||||
|     # overwrite the default user/pass with what is passed in | ||||
|     if ($::opt_U) { | ||||
|         $bmc_user = $::opt_U; | ||||
|     } | ||||
|     if ($::opt_P) { | ||||
|         $bmc_pass = $::opt_P; | ||||
|         if ($::opt_U) { | ||||
|             $bmc_user = $::opt_U; | ||||
|         } | ||||
|     } | ||||
|  | ||||
|     ######################################### | ||||
|   | ||||
		Reference in New Issue
	
	Block a user