ID 353285 - canCreateNode() always returns true

Follow

Problem summary
canCreateNode() always returns true

Customer reported version
nuke.11.1v4

Customer reported platform
windows10

Steps to reproduce

1) Launch Nuke and open the Script Editor (Windows > Script Editor).

2) Run the following command (CTRL+Return):

nuke.canCreateNode( 'anything' )
Result: This should return 'False'; it actually returns 'True'.

Workaround
Unknown

Reproduced by support
This bug has been reproduced in:
11.1v4 - Windows 10 - OSX 10.12.6 - CentOS 6.9
11.1v1 - Windows 10
11.0v4 - Windows 10
11.0v1 - Windows 10
10.5v7 - Windows 10
10.5v1 - Windows 10
10.0v6 - Windows 10
10.0v1 - Windows 10
9.0v9 - Windows 10
9.0v1 - Windows 10
8.0v7 - Windows 10
8.0v1 - Windows 10
7.0v10 - Windows 10 - OSX 10.12.6 - Cent0S 6.9

Earliest version tested
7.0v10 - This issue appears to be in all versions of the product.

Expected behaviour
Running the script should return False.

Actual behaviour
Actually returns True.

    We're sorry to hear that

    Please tell us why