diff --git a/lib/cisco_node_utils/upgrade.rb b/lib/cisco_node_utils/upgrade.rb
index <HASH>..<HASH> 100644
--- a/lib/cisco_node_utils/upgrade.rb
+++ b/lib/cisco_node_utils/upgrade.rb
@@ -58,7 +58,15 @@ module Cisco
       if image && uri
         config_get('upgrade', 'image_version', image: image, uri: uri)
       else
-        config_get('show_version', 'version').split(' ')[0]
+        version = config_get('show_version', 'version')
+        # show version displays version differently for release and
+        # development builds.
+        # Eg: release build
+        #       NXOS: version 7.0(3)I4(2)
+        # Eg: development build
+        #       NXOS: version 7.0(3)IFD6(1) [build 7.0(3)IGD7(0.65)]
+        return version unless version[/build\s+\S+/]
+        version.split(' ')[-1].split(']')[0]
       end
     end
Handle version difference for development builds (#<I>)

* Handle version difference for development builds



* remove unnecessary split()